Bimbaim Posted July 1, 2021 Share Posted July 1, 2021 How i can add custom class to the anchor link based on scrolltrigger? I use toggleclass but it add custom class in all anchor. I only want add class based on id from anchor connected with scrolltrigger. See the Pen bGexQpq by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted July 1, 2021 Share Posted July 1, 2021 This should help! See the Pen XWXpjjo by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now