Hi!
Thanks for the example!
So I added this and it's working now! Or is there a better way to do this? Sorry im new to this
onUpdate: self => {
console.log("progress:", self.progress.toFixed(3), "direction:", self.direction);
let { direction } = self;
const featureBoxes = document.querySelectorAll('.main-menu');
if (direction == -1) {
featureBoxes[0].classList.add('is-sticky')
featureBoxes[0].classList.remove('is-hidden')
} else if (direction == 1) {
featureBoxes[0].classList.add('is-hidden')
featureBoxes[0].classList.remove('is-sticky')
}
}
Thanks!