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

stop and go time issue #176

Open
yshen65 opened this issue Dec 3, 2013 · 0 comments
Open

stop and go time issue #176

yshen65 opened this issue Dec 3, 2013 · 0 comments

Comments

@yshen65
Copy link

yshen65 commented Dec 3, 2013

I am trying to use transition to stop and replay on demands . however I found that I can't fully clear the first transition by useing clearQueue();

this is my testing script I try to stop the first animation (which is set to run 10 sec) at t=7000 and replace it with a 4 sec run backward

$("#item").transition({"left":1200},10000,'linear'); // first animation
setTimeout(function(){
$("#item").clearQueue();// stop the first one
$("#item").transition({"left":100},4000,'linear'); //second animation
},7000); //stop the first on t=7000

can start the second one with clearQueue()..however the transition jump to end at t=10000 (it should stop at 7000+4000=11000)

if not use clearQueue() ..it will stop at 7000 and wait another 3000 then start the second one..

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

1 participant