GSAP Timeline with Locomotive Scroll not working in Next.js
I’m trying to implement a GSAP timeline with Locomotive Scroll to pin an element while scrolling in a Next.js component. The code works perfectly in a normal HTML and JS environment, but it’s not functioning as expected in Next.js.