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

How to loop an animation #68

Open
freew01f opened this issue Apr 2, 2015 · 1 comment
Open

How to loop an animation #68

freew01f opened this issue Apr 2, 2015 · 1 comment

Comments

@freew01f
Copy link

freew01f commented Apr 2, 2015

I want loop play a animation, how to do it? thanks

@zhaoyunyes
Copy link

zhaoyunyes commented Feb 16, 2017

function loopTransition() { move('#box1').set("transform", "translate3d(80px,20px,0)").duration(2000).end(function() { move('#box1').set("transform", "").duration(1000).end(function() { loopTransition(); }); }); } loopTransition();

Maybe it's not the best way to do it,but it's also a way

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