Jump to content
Search Community

Pause at a certain point

aarcro 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 can't figure out how to get TimelineLite to stop playing at a particular point. I have some tweens that run forwards. Then I want to reverse to a point 1.5 seconds from the start, and pause there.

 

There don't seem to be any functions of the type that would play to a time or label and stop.

 

Thanks!

--Aaron

Link to comment
Share on other sites

Jamie is right - tweenTo() is probably best/easiest. But I'll offer two other ideas just in case they appeal to you more:

  1. Put a callback wherever you want to pause the timeline and in that callback, pause() the timeline.
  2. pause() your timeline initially and then tween its time() using a linear ease (this is basically what tweenTo() does). Like
    TweenLite.to(timeline, Math.abs(destination - timeline.time()), {time:destination, ease:Linear.easeNone});


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...