Answer the question
In order to leave comments, you need to log in
How to scroll slick slider two slides?
I ran into a problem that I can’t scroll the slick slider two slides by clicking the button, if the slides are the first, then everything works, if the slide is the last or penultimate, then it doesn’t want to scroll, as if there is no longer a slide with such an index, how to solve the problem?
$('.salon__nextx2').on('click', function () {
const current = $(".slider.slider_salon").find('.slick-active').attr('data-slick-index');
$(".slider.slider_salon").slick('slickGoTo', current+1);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question