Add class to Anchor Link active div in GSAP 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
Add class to Anchor Link active div
in GSAP
Posted
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