Hello,
I'm attempting to recreate an effect from this codepen:
See the Pen oNdNLxL by GreenSock (@GreenSock) on CodePen
My issue is that the section I want to add animations to on swipe is not at the top of the page, but further down. Is it possible to get this same functionality, but to have scrollable content above the section that uses Observer? I've attached a Codepen example - my issue is that when there is scrollable content above thi
Welcome to the forums, @sarahholden! Congrats on stepping out and posting your first question (after lurking for a while). 💚
From what I can tell, the browser doesn't really honor the request to event.preventDefault() on wheel events when scrolling is in-progress, at least on some devices like my Mac. Very annoying, and I'd argue wildly incorrect behavior, but don't worry - we can work around it:
let preventScroll = ScrollTrigger.observe({
preventDefault: true,
type: