Harold AO Posted April 25, 2022 Share Posted April 25, 2022 Hey Greensock ! I'm working on a Shopify store with scrollSmoother, and there's an app that add a section in the DOM and causes layout shift. I need to manually recalculate the height of the scrollable area (I want the same behavior as when we resize the window) but currently it's not possible from what I saw in the doc. My footer is not reachable anymore Link to comment Share on other sites More sharing options...
Solution PointC Posted April 25, 2022 Solution Share Posted April 25, 2022 Please give this a whirl: ScrollTrigger.refresh(); Happy tweening. 1 1 Link to comment Share on other sites More sharing options...
Harold AO Posted April 25, 2022 Author Share Posted April 25, 2022 1 minute ago, PointC said: Please give this a whirl: ScrollTrigger.refresh(); Happy tweening. oohhh thanks 1 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