jQuery, CSS, -webkit-transform: NO animation -


i using code change -webkit-transform property of element. however, want without transition animation playing: e.g. want go transformx(-300px) transformx(0) without slide in-between. code have far, ineffective. have have "list-style-type" set none otherwise step function not run.

$("#slider > ul").animate({"list-style-type": "none"}, {step:  function(now, fx) {     $(this).css('-webkit-transform', 'translatex(0)') }  });  

any ideas?

just do

$("#slider > ul").css('-webkit-transform', 'translatex(0)'); 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -