Jump to content
Search Community

Alternately switch of tabs with GSAP

Roman Kovalev
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

Roman Kovalev
Posted

Hey, guys! 
I'm making smooth tab switchers with GSAP help. So I faced on trouble: when I click on different tab buttons (quickly) and animation hasn't stopped from previous elements the next element starts its animation. Any help ?

UPD

Oh, fixed.... Ask the right question and answer it yourself.

See the Pen NrrNqM by NeedHate (@NeedHate) on CodePen.

  • Like 1
Posted

Awesome!

 

Thanks for letting us know.

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