Skip to content
Advertisement

Tag: slide

I want slider autoplay

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

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

Advertisement