jpoly4 Posted September 29, 2020 Share Posted September 29, 2020 I am building a site and wanted to know if anyone else has come across this issue. The start and end points of sections lower on the page don't seem to line up but, if I change the browser size they update and line up perfectly. Here's the URL to show what I am talking about - https://decarttx.wpmudev.host/our-science/ Thanks! Link to comment Share on other sites More sharing options...
ZachSaucier Posted September 29, 2020 Share Posted September 29, 2020 Hey jpoly4 and welcome to the GreenSock forums. This usually means that content is loaded (usually images) between after ScrollTrigger is initialized. To fix it, either wait to initialize ScrollTrigger until the images (or whatever) have been loaded or call ScrollTrigger.refresh() after the images load. This is actually one of the most common ScrollTrigger mistakes. Link to comment Share on other sites More sharing options...
jpoly4 Posted September 30, 2020 Author Share Posted September 30, 2020 Hi Zach, Thanks for the quick response. I think it's because the images are set to lazy load. Thanks, John 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