Share Posted March 8 Hello I'm trying to get the titles on the left to add an active class when the related (by data-attributes) block on the right scroll to top. The blocks and titles are all found when I console.log them but the toggle class function isn't firing. I've tried using the onToggle: self functions but with the same result. I can't figure it out, what am I missing? See the Pen ZEMXoVg by Cottonltd (@Cottonltd) on CodePen Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now