Use text-indent and it will work. Example:
$(".test").animate({ textIndent: 100 }, { step: function(now,fx) { $(this).css('-webkit-transform',"translate3d(0px, " + now + "px, 0px)"); }, duration:'slow' },'linear');
Alternatively, you can remove scale(1) from -webkit-transform .
JSFIDDLE
To avoid changing a useful property, you can provide any property. See the example below:
$(".test").animate({ whyNotToUseANonExistingProperty: 100 }, { step: function(now,fx) { $(this).css('-webkit-transform',"translate3d(0px, " + now + "px, 0px)"); }, duration:'slow' },'linear');
JSFIDDLE
And because I'm a Firefox fan, use Firefox compatibility by adding this line, like here :
$(this).css('-moz-transform',"translate3d(0px, " + now + "px, 0px)");
Ionicฤ Bizฤu
source share