oljapolja Posted April 5, 2022 Share Posted April 5, 2022 Hi! I've created some animations using ScrollTrigger and ScrollTrigger.matchMedia, everything working as expected, but recently I noticed some issues. Sometimes after page refresh, all ScrollTrigger animations have wrong start position and overlap each other. I tried to find out the reason, and it is only one way to reproduce it - after page refresh, you should right away start scrolling to the end of page, and then you could see it. I also have a section that uses dynamic data, after fetching everything I refresh - ScrollTrigger.refresh(). I created codepen to reproduce it. Issues: 1) scroll down with normal speed and see that animation working fine. Click the refresh button -> ScrollTrigger start position changes to the wrong one. 2) refresh codepen -> in the very first moment after refresh, scroll to the end of page, then you could see the wrong ScrollTrigger start position. Click refresh button -> no difference. Thanks in advance! See the Pen LYeQYXj by oljapolja (@oljapolja) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted April 6, 2022 Share Posted April 6, 2022 Welcome to the forums @oljapolja It looks like you may be experiencing the same bug as in this thread, but it apparently it still has some issues. Please standby while we look into it. Thanks! Link to comment Share on other sites More sharing options...
GreenSock Posted April 6, 2022 Share Posted April 6, 2022 Sorry about the confusion there, @oljapolja. It should be fixed in the next release which you can preview at https://assets.codepen.io/16327/ScrollTrigger.min.js (just make sure you don't have an old version cached) Better? 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