Stoggy Posted March 3, 2022 Share Posted March 3, 2022 Hi, I've been trying to figure out a way to add an active class to my smooth scroll container while scrolling is being done. And having that class removed as soon as I stop scrolling. What I've come up with so far is to add the class with the onUpdate() callback and then remove it using onScrubComplete() Is there a smarter way to do this with gsap? I'm using the smooth scroll setup used in the attached example: See the Pen gOgWELo by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted March 3, 2022 Share Posted March 3, 2022 Hi Stoggy, That sounds like the best way to do it. 😃 1 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