xnslx Posted June 20 Share Posted June 20 Hello community, I have a question regarding using triggerscroll plugin. I create a carousel which the user can swipe vertically, but I hope when the user reach the last slide, it stops there and can only be swiped reversely. I also hope that the carousel is NOT drag free, which means that I hope you swipe up/down the carousel, only one slide will move to the viewport. Here is the codepen, Attached the screenshot is the one that I hope it won't happen. Thank you in advance! See the Pen OJYQKbE?editors=0010 by xnslx (@xnslx) on CodePen Link to comment Share on other sites More sharing options...
Sahil Posted June 20 Share Posted June 20 I think you just need to remove min-height from body. See the Pen JjqLjvP by SahilAFX (@SahilAFX) on CodePen 2 Link to comment Share on other sites More sharing options...
Solution Cassie Posted June 20 Solution Share Posted June 20 Just another note - This comment seems like you may be looking for Observer plugin, not ScrollTrigger? Quote I also hope that the carousel is NOT drag free, which means that I hope you swipe up/down the carousel, only one slide will move to the viewport. https://gsap.com/docs/v3/Plugins/Observer/ 1 Link to comment Share on other sites More sharing options...
xnslx Posted June 20 Author Share Posted June 20 Thank you so much @Sahil @Cassie both the answers are very helpful!!! I really appreciate the help! 2 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