Answer the question
In order to leave comments, you need to log in
How to make sliders work separately?
or rather, they switched,
because now in each item there are several of them (instead of one block .block__arrows )
if you make one slider on the page - everything is correct,
but two or more - no
https://jsfiddle.net/ca5d0uq8/3/
Answer the question
In order to leave comments, you need to log in
We loop through each block with a slider, find the necessary elements in it and initialize it:
var events = $('.block__gallery');
Initialize each slider with a new class, preferably an id
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question