jramke Posted December 5, 2023 Share Posted December 5, 2023 Hey, i created a horizontal scroll section with scrolltrigger back when 3.11.3 was the most recent gsap version. Now im rebuilding this section with gsap 3.12.3, but i noticed, when i refresh the page and the scrollposition was not at the top of the page the animation breaks. When downgrading gsap to 3.12.2 it works fine. It would be great if someone has an idea why its happening and/or can provide a working solution with the newest gsap version. Thanks in advance. Joost See the Pen YzBdZvv?editors=0010 by jramke (@jramke) on CodePen 1 Link to comment Share on other sites More sharing options...
Solution mvaneijgen Posted December 5, 2023 Solution Share Posted December 5, 2023 It's Bootstrap scroll-behaviour: smooth, adding the following to you rCSS fixes the issue: html { scroll-behavior: auto !important; } Hope it helps and happy tweening! See the Pen abXPWdq by mvaneijgen (@mvaneijgen) on CodePen 4 Link to comment Share on other sites More sharing options...
jramke Posted December 5, 2023 Author Share Posted December 5, 2023 Thanks, for the quick reply. That really works. Thanks! 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