Jump to content


TimelineMax.tweenTo() skip

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 wonder how to skip resp. merge tweenTo() event when triggered multiple times.


Let me give an example first of all to illustrate my purpose:




For now every single animation finalizes seperate each time when the button is triggered multiple times before given tweenmax is complete.

But i would like to some kind of merge all triggered tweenTo() to one single animation.


One tweenMax has a duration of 2sec that scale for 0.1.

When i trigger the button 4 times immediately consecutively i would like the animation to end at scale(0.4) with a duration of about 2sec.


Thank you in advance




See the Pen by vvweosts (@vvweosts) on CodePen

Link to comment
Share on other sites

Hi and welcome to the GreenSock forums.


I don't know what "skip resp. merge tweenTo()" means, but maybe you want an effect like this?



  • Like 2
Link to comment
Share on other sites

Hi and thanks for your reply!


Your approach looks quite good. But the problem is that my timeline exists of about 100 entries that all have different durations. So it is not possible to fill in static 2sec for instance.


To clarify what it mean by "skip" please have a look at this comparison of TimelineMax and simple TweenMax:



Please trigger the button about 5 times immediately. As you might see the multiple animations are some kind of merged towards one animation when using simple TweenMax only. But TimelineMax complete one animation after the other.

I need the same behavior to a TimelineMax.


Hope things getting clearer. Thank you!

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.