visionmedia / move.js

CSS3 backed JavaScript animation framework
http://visionmedia.github.com/move.js/
4.72k stars 686 forks source link

Question: How can I interrupt / stop animation? #39

Closed mpodriezov closed 10 years ago

mpodriezov commented 10 years ago

Is there a way to stop animation, something like this; //init animation move('.clock'). .to(500, 200) .rotate(360) .duration('10s');

// elsewhere move('.clock').stop(); //this will stop rotation move('.clock').continue();

yields commented 10 years ago

i don't think it's possible using css transitions ATM, you might want to use something like tween.