Jump to content
GreenSock

Christiemade

ScrollTrigger, Target Separate Elements, In A Loop

Moderator Tag

Recommended Posts

I am trying to get a separate nav to show active items as you scroll through sections (separate elements).  Right now the 'active' class is getting added to the elements being scrolled, but I want them to be added to the navigation items.   What am I doing wrong here?

See the Pen wvgRgmz by christiemade (@christiemade) 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.
×