Mediastap Posted June 3, 2022 Share Posted June 3, 2022 Hi, I have a problem with my code (see codepen), if i disable the scrollsmoother it works like i want, but when enabled i get in trouble with my .section-2 because it uses a margin-top: 100vh; which causes the the scrollable content to be short 100vh so am missing the last section. What am i missing here? See the Pen NWyzvRW by marco77mdst (@marco77mdst) on CodePen Link to comment Share on other sites More sharing options...
Solution Cassie Posted June 3, 2022 Solution Share Posted June 3, 2022 Hey there! Welcome to the forums, thanks for joining Club GreenSock, we appreciate the support. Here's a solution for you using ScrollTrigger to pin the item instead. See the Pen WNMyzzP by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
Mediastap Posted June 3, 2022 Author Share Posted June 3, 2022 Thank you very much for this solution! 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