superbenj Posted May 8, 2022 Share Posted May 8, 2022 Is there a way with Gsap to adjust the parent height to fit the new requested section height and get the original height if the new section is closed? See the Pen VwQeEZB by superbenj (@superbenj) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted May 9, 2022 Share Posted May 9, 2022 Hi superbeng, I'm not exactly sure what you're asking. You can use gsap.getProperty to get the height of something and gsap.set to set the height. 2 Link to comment Share on other sites More sharing options...
superbenj Posted May 9, 2022 Author Share Posted May 9, 2022 Got it, thanks OSUblake Link to comment Share on other sites More sharing options...
superbenj Posted May 9, 2022 Author Share Posted May 9, 2022 Is there a way to update ScrollSmoother onclick? because when we click on the second or third button, the footer is not visible? The pen on the top is updated! Link to comment Share on other sites More sharing options...
OSUblake Posted May 9, 2022 Share Posted May 9, 2022 Just call this to update it. ScrollTrigger.refresh(); 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