Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Instead of using asNavFor, handle slide transition events and toggle the adjacent slider:
const $slider1 = $('.slider-nav').slick({
...
}).on('beforeChange', function(e, slick, currSlide, nextSlide) {
$slider2.slick('slickGoTo', nextSlide + 1);
});
const $slider2 = $('.slider-for').slick({
...
}).on('beforeChange', function(e, slick, currSlide, nextSlide) {
$slider1.slick('slickGoTo', nextSlide - 1);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question