klmr Posted June 7, 2022 Share Posted June 7, 2022 I'm wondering if there's a way looping trough child elements of pinned section. See Codepen. List items should get .active class added and then removed one-by-one. See the Pen abqaJOZ by kalmerrautam (@kalmerrautam) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted June 7, 2022 Share Posted June 7, 2022 Hey there! Welcome to the forums. Is the purpose of the active class to animate them? If so, I would suggest just using GSAP, after all - that's what it's for! Here's a starting point. See the Pen xxYaaEE?editors=1010 by GreenSock (@GreenSock) on CodePen 1 1 Link to comment Share on other sites More sharing options...
klmr Posted June 7, 2022 Author Share Posted June 7, 2022 Hey! Thanks! Final goal is to manipulate with several parameters together (background-color, dropshadow, scale) and one at a time. To highlight only one block lose the highlight after another one gets it. But I'll try to figure something out. Link to comment Share on other sites More sharing options...
Cassie Posted June 8, 2022 Share Posted June 8, 2022 You can also do that! See the Pen xxYaaEE?editors=0110 by GreenSock (@GreenSock) on CodePen 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