Jump to content


ScrollTrigger Issue

Go to solution Solved by Nonoco,

Recommended Posts


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.



Link to comment
Share on other sites

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!

  • Like 1
Link to comment
Share on other sites

  • Solution

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.