Jump to content
GreenSock

UnrilWever

How can I accelerate when I call nextLabel

Go to solution Solved by Rodrigo,

Recommended Posts

I have a timeline probably like this

tl
.addLabel('1')
to(...)
.addLabel('2')
to(...)
.addLabel('3')

when I call tl.tweenTo(tl.nextLabel());

The next tween must wait untill the last one was ended before it can start playing

So how can i  accelerate the  last one ? Or I achieve it another way rather than timeline ?

Link to comment
Share on other sites

  • Solution

Hi,

 

What you could do is when you call the tweenTo method you could change the timescale of the timeline and, as @mvaneijgen mentioned, use an onComplete method to reset the timescale back to 1 in order to set the speed of the timeline to normal.

 

I'd recommend you to keep everything in a timeline since it's simpler and easier to update the timescale of a specific instance each time you want to go to a specific label.

 

Happy Tweening!

Link to comment
Share on other sites

I may unable to give a demo,but all of your suggestion does help and good to answer my question

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