Jump to content
Search Community

Add class with gsap for each section

Mir Moc test
Moderator Tag

Recommended Posts

On 4/14/2022 at 5:37 PM, GreenSock said:

Jack, how do I reuse the function when to add something to the event listener? Using barba to load – http://mirmoc.com/

From the project page I want to go back to the main page, then run to the respective triggers you created. I think two options, either to do it with if else in your function, or to update the function in the barba hook where I go back to main page. 




Hi @Mir Moc. I assume you're looking for something like this?:

 

 

 

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