Share Posted November 10, 2022 Hi everyone, Im trying to use ScrollTrigger with Next.js. I just coppied https://codesandbox.io/s/gsap-scrollsmoother-next-js-starter-0h67eh?file=/pages/index.js but my example not work like that. boxC moving a little bit between start and end position, after it jumps 150-200px and it moves again with scrolling. Thanks Screen Recording 2022-11-10 at 21.45.18.mov Link to comment Share on other sites More sharing options...
Share Posted November 10, 2022 Hi @Nonoco and welcome to the GreenSock forums! First thank you for being a Club GreenSock member and supporting GSAP! 🥳 The codesandbox link you provide has some outdated dependencies, please check it again as I updated the GSAP version. If you keep seeing issues please let us know the browser and OS you are using, since it seems to work OK on the latest Chrome and Firefox in Ubuntu 20 and 22. Happy Tweening! 1 Link to comment Share on other sites More sharing options...
Solution Author Solution Share Posted November 12, 2022 Hi @Rodrigo Thanks for your helping. I solved my problem by disabling React Strict Mode and it looks fine. Have a nice day 🤘 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now