This code sets the position of translateX:
var pos = -500px;
$(.slide).css('-webkit-transform', "translateX(" + pos+ "px)");
but the following code does not get the translateX position:
var currTrans = $(".slide").css('-webkit-transform', "translateX()");
Why? What is the correct way to get the value?
source
share