Jump to content
Search Community

How to remove my function after I go out of the section in scroll

Али К test
Moderator Tag

Recommended Posts

Like Zach, I'm a bit confused by your question. Are you saying that you want to CALL a specific function whenever you enter a section on scroll? Functions aren't "on" or "off" - they're just objects that can be invoked. 

 

If you want to call a specific function like that, sure, just use the onEnter and onEnterBack callbacks in a ScrollTrigger. It's all in the docs

  • Like 1
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...