Jump to content
Search Community

how can I call a function inside the Gsap code ?

Ali961 test
Moderator Tag

Recommended Posts

I read your question a few times and I still don't understand what you're asking, sorry. 

 

GSAP tweens have callbacks like onStart, onComplete, onUpdate, etc. Or if you're trying to fire a function when the scroll position gets to a certain spot, you can use ScrollTrigger.create() and just set the start to whatever you want, and use an onEnter to call your function. 

 

If you still need help, please make sure your minimal demo isolates the issue as much as possible and maybe rephrase your question so we can better understand. 

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