Share Posted December 2, 2022 Hi guys, We have two divs with a different height which lay next to each other. If the user scrolls gsap scrolltrigger scrolls the divs in a way that on the bottom of the page (scroll end) they are aligned at their bottom line. This works easy if we calculate the leftover space to scroll with body height - div height. If one of the divs holds an expandable element the height of the div changes dynamically. Is it possible to refresh not only the start and end scrolltrigger values, but also the y value of the to tween? All the best, F See the Pen wvXYEGE by anothercodepen (@anothercodepen) on CodePen 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