Hi, im trying to convert an existing draggable codepen to work with react. But its not working. it only works when i swipe to the left or hit the prev button, swiping next doesnt work. Also, it doesn't snap. I'm new to gsap and not sure where i'm going wrong. i omitted the timer to disable the automatic swiping to help troubleshooting.
React + swipable draggable proxy carousel not working
in GSAP
Posted
Hi, im trying to convert an existing draggable codepen to work with react. But its not working. it only works when i swipe to the left or hit the prev button, swiping next doesnt work. Also, it doesn't snap. I'm new to gsap and not sure where i'm going wrong. i omitted the timer to disable the automatic swiping to help troubleshooting.
the codepen i'm trying to convert to react:
See the Pen veyxyQ by osublake (@osublake) on CodePen
See the Pen poZGgaj by ziploker (@ziploker) on CodePen