Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

how to force a timeline to finish

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I have not made a codepen.


It's basically that.


I want to know how I can force the timeline to finish animating to the end or beginning. Just want the elments to return to the initial state without tweening while scrolling using scrollmagic or basically to press a button.


I have tried pretty much all the timelinemax methods without success.


somebody here with much experience then me should know.


Thanks so much

Link to comment
Share on other sites

got it




Now how do I close this post? :)

Link to comment
Share on other sites

Glad you found the solution. There are a bunch of ways to accomplish that actually. 


No need to delete the post because some other people might benefit from reading this. 


Happy tweening!

Link to comment
Share on other sites

Hello Jack,


Yes I found a quick solution from one of your post. I didn't really want to kill the tween but to cancel it for later use. Did you know a quick one to resurrect it. Hahahaha unkill it.



love your GSAP!

Link to comment
Share on other sites

If you don't want to kill it, just don't call kill(). 




Think of the timeline like an object that you have total control over - play(), pause(), seek(), jump to a certain progress() value, whatever. For example:

yourTween.progress(1).pause(); //jumps to the end and pauses there. 
yourTween.play(0); //plays from the beginning

Does that help at all? 

  • Like 2
Link to comment
Share on other sites



I get it. progress with the 1 stands for 100%.


Too simple! When you know it



  • Like 1
Link to comment
Share on other sites

Yep, once you get a little experience with the API, I think you'll find that it's pretty intuitive and it'll all fall into place :)


Happy tweening!

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.