shumaisq Posted June 26, 2023 Share Posted June 26, 2023 Hello GSOCK, Today i was trying to achieve an effect something similar to this awesome demo. See the Pen XWzRraJ by GreenSock (@GreenSock) on CodePen When i started using this in my project, the problem that arise was the content in these sections weren't scrollable. Now i have integrated new code in my project but now the problem is that the snapping of each sections takes time and snaps after a delay. I want the section to stack on top as soon as the user reaches the end of the section so that the UX is not hindered. I have been trying to implement this functionality since morning but i'm not bale to wrap my head around this. I have attached a working codepen demo. Thanks, Shumais See the Pen LYXxzbg by shumaisqasim (@shumaisqasim) on CodePen Link to comment Share on other sites More sharing options...
Rodrigo Posted June 27, 2023 Share Posted June 27, 2023 Hi @shumaisq and welcome to the GreenSock forums! Maybe you're looking for something like this: See the Pen NWxNEwY by GreenSock (@GreenSock) on CodePen Hopefully that example is enough to get you going on the right direction. The key is the onToggle event. Happy Tweening! 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