I want the slider in the example to play automatically. I want to add autoplay feature to the code in the example. Answer Its very easy you just need to add autoplay property in your code. Please check this code. I hope you will get your answer
Tag: slide
Custom slider in react, Swiping images effecting all product images when next arrow btn pressed
I created function to swipe selected product image inside slide with left and right arrow btns. but when clicked it is swiping every item image not single one. i could not use newSlideArray variable outside of the function. can anyone explain me how to swipe single item image in slide ? Here is my source code: [![enter image description here][1]][1]
scrollIntoView not executed in touch event listener
I’m trying to make a vertical slide, it works on desktop with wheel event but the scrollIntoView methode doesn’t get executed in a touch event listener. Here is the code The weird point is that the console logs inside the conditions are executed and the scrollIntoView method works outside the eventListeners What am I missing ? Answer The problem comes