css3 - How can I do this CSS transform with jQuery? -
i using transit.js before, works beautifully, reduce script dependancies want myself. have searched everywhere no avail.
before:
main.stop().transition({ x: -thex }, 600)
now (which doesn't work):
main.animate({ borderspacing: -thex }, { step: function(now,fx) { main.css('transform',"translatex("+now + "px) translatez(0)"); }, duration:600 });
what doesn't work snaps correct position no animation, , reason animates out (in other direction) 10px.
any ideas?
of if know of way css transform jquery/css/less dynamic value, let me know!
Comments
Post a Comment