Answer the question
In order to leave comments, you need to log in
Why is the numbering not immediately displayed in the click slider?
Hello, here
is the code:
var num = $('.reviews__sl__num');
var slider = $('.reviews__sl');
slider.on('init reInit afterChange', function(event, slick, currentSlide, nextSlide) {
var i = (currentSlide ? currentSlide : 0) + 1;
num.html(i + '<span>из</span>' + slick.slideCount);
});
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