bleep Posted December 9, 2023 Share Posted December 9, 2023 Hi, I'm trying to edit a GSAP example called horizontalLoop() I would like to add a scroll listener so that when you scroll up or down anywhere inside the .wrapper, it makes the carousel go left or right, infinitely. I'd like it to have some lerp or inertia on scroll, and I don't need snapping. Â What method would you recommend to do this? Â Side note: the horizontalLoop() official GSAP example sometimes goes crazy with drag velocity going extremely high all of a sudden. Has there been an update on this GSAP example where it doesn't do this? (It does it on my CodePen too) See the Pen OJdqEVB by bleepbleep (@bleepbleep) on CodePen Link to comment Share on other sites More sharing options...
Toso Posted December 10, 2023 Share Posted December 10, 2023 hi @bleep i think this demo will be useful   See the Pen RwKwLWK by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
Rodrigo Posted December 10, 2023 Share Posted December 10, 2023 Hi,   These demos should provide a good starting point  See the Pen zYaxEKV by GreenSock (@GreenSock) on CodePen  See the Pen GRwePYw by GreenSock (@GreenSock) on CodePen  Hopefully this helps Happy Tweening! 3 Link to comment Share on other sites More sharing options...
bleep Posted December 23, 2023 Author Share Posted December 23, 2023 Sorry I forgot to reply, thank you for sharing these No luck so far but I'll keep trying and digging  Season's greetings 🌠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