Answer the question
In order to leave comments, you need to log in
How to set up slick slider in slider?
It is necessary to make a slider in the slider. (I use slick) In the first slider, the background changes with slick, the content changes with
$('.section8_col_left').each(function () {
i++;
$(this).attr('data-slick-index', i);
});
$('.section8_img').on('beforeChange', function (event, slick, currentSlide, nextSlide) {
var nextSlideNum = nextSlide + 1;
$('.section8_col_left').removeClass('current');
$('.section8_col_left[data-slick-index="' + nextSlideNum + '"]').addClass('current');
});
Answer the question
In order to leave comments, you need to log in
Partially solved the problem, wrote a script that, on each slide of the main slider, removes the inner slider and creates it again for the next screen.
The issue with the arrows remained open, when the slider is recreated, the buttons do not want to be recreated ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question