Jump to content


i have some problem with killTweensOf()

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

After running killTweensOf(), change the properties autoAlpha. It does not work.


killTweensOf() is in the onComplete.

i use 2 tweens,because I want to use different ease


See the Pen bgRVVW by lzy100p (@lzy100p) on CodePen

Link to comment
Share on other sites

Thank you for the demo. it was very helpful.

We will look into this and report back.

Link to comment
Share on other sites

Ah, very interesting. This is an EXTREMELY uncommon scenario - it would only happen if you kill the VERY NEXT tween (that's going to get rendered in the queue) from within an onComplete or onUpdate callback. If you had even one other tween inbetween those, you wouldn't see this problem. Good job! ;)


It should be fixed in the next update which you can preview (uncompressed TweenMax) at https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/TweenMax-latest-beta.js


Any of these would also work around the issue:

  • Pause that tween (in addition to or instead of killing it)
  • Just add some other tween inbetween those
  • Use a TimelineLite/Max instance instead of the root timeline. 
  • 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.