Share Posted April 6, 2022 Hi there, we've started using the GSAP ScrollSmoother in one of our projects, what actually works fine. This project is a SPA, so all pages are loaded via AJAX and the pre-rendered HTML is injected into the page/DOM. In some cases, ScrollSmoother recalculates the height of the body correctly after the injection, in other cases the body's height is set to 2000px. The function of loading and injecting is always the same, even the contents (markup) are similar. Does anybody have a clue? Thank you in advance. Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now