Hello,
I'm looking to use the Next and Previous buttons to scroll to the Next and Previous .desktopContentSection element.
In the codepen, I have the Next button linked to #green and Previous buttons hard coded to #red to demonstrate the behavior, however after the element has scrolled to #green, if the Next button is clicked again the user is scrolled to #pink and then #blue.
I'm thinking I would need to utilize Observer, but i'm struggling looking for an example I can adjust for my needs.
Any assistance is very much appreciated, please let me know if you need anything from me.
Thank you!