brtweed Posted January 25, 2021 Share Posted January 25, 2021 I'm not a front-end developer so apologies in advance. I just want to know if the following is possible using GSAP : is it possible to have a full screen vertically scrolling gallery in the middle of a normal flowing webpage? So, user scrolls normally until they reach the gallery, then each slide would change on scroll until the last slide (slides using this effect: http://www.playersparis.tv/), then the page would scroll as normal to the footer. Link to comment Share on other sites More sharing options...
ZachSaucier Posted January 25, 2021 Share Posted January 25, 2021 Hey brtweed and welcome to the GreenSock forums. Yes, that is most definitely possible! ScrollTrigger makes it pretty easy to set up such a thing. The docs and demos page should help you get started but if you have a specific issue please let us know and provide a minimal demo Link to comment Share on other sites More sharing options...
brtweed Posted January 25, 2021 Author Share Posted January 25, 2021 See the Pen BaLgMwJ by brtweed (@brtweed) on CodePen Why can't a see the white section after the slides? And what makes the slide snap to the top of the screen on scroll? Thanks for any help. Link to comment Share on other sites More sharing options...
ZachSaucier Posted January 25, 2021 Share Posted January 25, 2021 2 hours ago, brtweed said: Why can't a see the white section after the slides? I answered that exact question in this thread earlier today: 2 hours ago, brtweed said: what makes the slide snap to the top of the screen on scroll? That would be the ScrollTrigger with the snap on it. It is currently applied to the entire scroller, not just your sections that you want to snap. So you'll have to adjust the demo to get it working the way that you want it to. I highly recommend spending more time playing with ScrollTrigger and looking through the docs and demos 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