Jump to content
Search Community

Trigger Batch onEnter when Accordion panel is shown

C.Krawietz test
Moderator Tag

Go to solution Solved by elegantseagulls,

Recommended Posts

  • Solution

Easiest way would be to just create a ScrollTrigger batch on open function, then kill it on close.

 

A bit more complex would be to:

You could setup a var to check if the Accordion has been opened, and if it hasn't, setup your ScrollTrigger batch function on first open, then use open close functions to reset/enable/disable your ScrollTriggers.

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