I'm using Ken Wheeler's Slick and want to set autoplay on false when the user either clicks on slick-prev or slick-next or drags the carousel left or right.
slick = $('.slick').slick({
slidesToShow: 3,
slidesToScroll: 2,
autoplay: true,
autoplaySpeed: 2500,
dots: false,
});
I tried the following
$('.slick-prev, .slick-next').on('click', function(){
slick.slickSetOption('autoplay', false, false);
});
And
$('.slick-prev, .slick-next').on('click', function(){
$(slider).slick('slickSetOption', 'autoplay', false, false);
});
Both did not work, and I'm not sure how to look for a draggable event.
autoplay
back totrue
too? – Jape