I have an infinite carousel. Carousel: https://codepen.io/Marouen/pen/OxyEEY
But now I want to add swipe functionality in this. For that I thought of using ontouchmove on #carousel and on ontouchend will call the function prev or next based on how much x-coordinate is changed.
But the transition of prev and next starts from starting while it should start from the point where the user leave the touch (that is after ontouchmove).
Do anyone has any idea how to achieve it?