I’m creating a sticky subnav that appears up on scrolldown. Now, I’d like to set a state of each nav element to selected or not selected, depending on if the related content is showing. Just like this: https://www.salesforce.com/company/careers/?fbclid=IwAR3kbg5Y0Zcv6wAxE2fZYxQ96_z3p4iSeIA8s6s-qLnWhmN4uYgqRFFk9pI
My issue is that I can set it to selected when it hits a certain Y scroll number… but then it won’t turn off. I think it’s just reading the first case and ignoring the second one.