Jump to content
Search Community

Can't get .isActive() and .kill() to work on a TimelineMax

Felix Bridell

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

Felix Bridell
Posted

Hi.

 

This is probebly an easy one, but I need some one to point me in the right direction here.

I can't get .isActive() and .kill() to work on my TimelineMax (or don't understand how it works). I have search the forum and tried some examples but still no luck.

 

I want to create a simple feedback animation for the user when click on a save button. If the user clicks several times while the animation is running, I want it to kill the active one and start a new one. Does not sound that hard, but now it just create an other feedback message beside the existing one.

 

Please help.

See the Pen yRvyxQ by mashplan (@mashplan) on CodePen.

Felix Bridell
Posted

Wow, that was fast!

Thank you so much, works perfect!

  • Like 1

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