Jump to content
Search Community

ScrollTrigger forEach item horizontally

gweatherson test
Moderator Tag

Recommended Posts

Hello! I'll try my best to explain this.

 

The horizontal scroll is working perfectly, but now what I am trying to achieve is: Control each item (.section-list__item) when it reaches the left-hand side of the viewport. Right now all of the 6 items are running the console.log when the trigger is reached.

 

I plan to run a separate function for each that will fade-in the sub-title and other content. Thank you!

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