Jump to content
Search Community

Need help for my GSAP timeline

pierrep- test
Moderator Tag

Go to solution Solved by akapowl,

Recommended Posts

  • Solution

Hey @pierrep- - welcome to the forum.

 

You simply just forgot to set your timeline to reversed for it to work with the ternary operator in your click-function.

 

var toOpenNav = gsap.timeline({ paused: true });

vs

var toOpenNav = gsap.timeline({ paused: true, reversed: true });

 

See the Pen adf3b831a4608bd591bce96a4864b46e by akapowl (@akapowl) on CodePen

  • Like 5
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.
×
×
  • Create New...