Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mpodriezov opened this issue Mar 13, 2014 · 1 comment
Closed

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

mpodriezov opened this issue Mar 13, 2014 · 1 comment

Comments

@mpodriezov
Copy link

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
Copy link
Contributor

yields commented Mar 14, 2014

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

@yields yields closed this as completed Mar 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants