Javascript image carousel

i have never come accross that event listener not sure how it works but i did do this im guessing my clear interval function is kind of doing what the transition-end event lister does?https://codepen.io/fahim22/pen/QWYJKXK

Iā€™m not sure it would make a noticable difference anyway as your slides are quite quick but if for example they were sliding a lot slower then with that event you could wait for the current transition to finish before you slide the next one in when the button is clicked.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.