Answer the question
In order to leave comments, you need to log in
How to switch slides on click?
There is a carousel slider on js without libraries (this is important):
https://codepen.io/Olovyannikov/pen/QWEjwQW
We need to associate controls with slides so that slides switch when clicked.
Now automatic switching (setInterval) and comparison of the button index with the slide index are implemented - if they match, then the active modifier, if not, then not the modifier.
Answer the question
In order to leave comments, you need to log in
If you don't need JS for this, then see the CSS Tricks article . I'd rather google than ask
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question