jonimius Posted March 6 Share Posted March 6 Hey there - I'm a bit confused on how to target the proper elements in order to achieve a scrollspy effect. I've got it working so the content being spied on is activating the "active" state but I need that "active" state to be set on the header items, not the main content. Any help would be appreciated! See the Pen YzMyLeJ by PhilippeGauthier (@PhilippeGauthier) on CodePen Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted March 6 Solution Share Posted March 6 Hi, Here are a few demos that could help: See the Pen oNQNrQx by GreenSock (@GreenSock) on CodePen See the Pen xxmPjOv by GreenSock (@GreenSock) on CodePen See the Pen KKYKKpp by GreenSock (@GreenSock) on CodePen See the Pen RwVGWOO by GreenSock (@GreenSock) on CodePen Hopefully this helps getting you started. Happy Tweening! Link to comment Share on other sites More sharing options...
jonimius Posted March 6 Author Share Posted March 6 Thank you so much! I was going to follow up with a question about using the toArray utility. Appreciate the quick response! 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