How to trigger a drag by clicking next/previous buttons #569
Unanswered
berkaycirak
asked this question in
Q&A
Replies: 1 comment 7 replies
-
You don't want to trigger a drag when clicking those buttons. You want to trigger a displacement of the carousel. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://codesandbox.io/s/3d-carousel-b42oss?file=/src/Carousel.js
Hello, I am trying to make a 3D Carousel. It is draggable right now actually but I want users are able to skip the slider via next/previous buttons. How can I activate drag by clicking those buttons? Any idea? Actually, I have tried to change slider by clicking those arrows via gsap but when position is changed via gsap, then I drag. In that case, carousel is stuck since positions are conflict. I want to make a fluent carousel both using arrows and also drag and drop options.
Beta Was this translation helpful? Give feedback.
All reactions