Jump to content
Search Community

ScrollTrigger toggleActions question

rvp test
Moderator Tag

Go to solution Solved by OSUblake,

Recommended Posts

Hey guys,

 

Quick question regarding ScrollTrigger toggleActions. Am I wrong in thinking that in the codepen I've provided the animation is supposed to play in reverse when hitting the onLeave event? I am trying to achieve the following behavior: the text scrolls into view and it appears then disappears when we leave the scrollTrigger limits but I don't understand why it remains visible when we see 'Leaving' in the console.

 

Your help would be much appreciated!

See the Pen vYWLqJJ by RVP22 (@RVP22) on CodePen

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