Hi,
im tying to use scrollProxy with locomotive like in the docs with Nextjs. Locomotive works fine but scrollTrigger its always at the initial position. It seams that the scrollTop inside the scrollerPoxy its not returning any value. I made a codesandbox to show the case:
Scroll component: https://codesandbox.io/s/nextjs-gsap-locomotive-qq11t?file=/src/components/scroll.jsx
Live demo:
https://qq11t.sse.codesandbox.io/
I'm looking for a good way to implem
What's the problem, @inzn? Got a minimal demo?
FYI, I believe LocomotiveScroll changed their API in v4 which affects your scrollerProxy() code:
// old
locoScroll.scrollTo(value, 0, 0)
// new
locoScroll.scrollTo(value, {duration: 0, disableLerp: true})
I'm not sure if that has anything to do with the problem you were facing. I just figured I'd mention it.