Jump to content
Search Community

how to force a timeline to finish

dominium test
Moderator Tag

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

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

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.
×
×
  • Create New...