Sumanta Posted November 1, 2024 Posted November 1, 2024 I have created a draggable carousel. I want it to move exactly same distance equal to the width of the slides in the carousel - irrespective of the amount/ distance of the drag. In the attached codepen, the snap.x function calculates and returns the amount of drag on each drag. It looks like this callback is not getting triggered. Not sure what is going wrong. See the Pen QWexWJy by sumanta-mukherjee (@sumanta-mukherjee) on CodePen.
Rodrigo Posted November 1, 2024 Posted November 1, 2024 Hi @Sumanta and welcome to the GSAP Forums! Maybe these demos can help: See the Pen bGJpOoQ by GreenSock (@GreenSock) on CodePen. See the Pen zYbzrQK by GreenSock (@GreenSock) on CodePen. Hopefully this helps Happy Tweening!
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