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
Post a Comment