Jump to content
Search Community

ScrollTrigger Different Instances Of The Same CSS Class Individually

emilychews test
Moderator Tag

Recommended Posts

Hi,

 

Is there a way of triggering different instances of the same CSS class as they enter the viewport. I've tried playing around with the ScrollTrigger.batch() method but can't seem to get this to work. 

 

In the below CodePen I'd like each of the.box elements to animate individually as they enter the view port as opposed to them all animating when the first one does.

 

Thanks in advance for any help

 

 

See the Pen gOPrGOV by emilychews (@emilychews) 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...