When I set speed: 1000
, pauseOnHover
is working fine but as soon as I set it to speed: 10000
, pauseOnHover
does not work immediately - it works after a few seconds.
Code:
$('#featured_credits').slick({
infinite: true,
arrows: true,
slidesToShow: 4,
slidesToScroll: 4,
autoplay: true,
autoplaySpeed: 0,
speed: 1000,
cssEase: 'linear',
pauseOnHover: true,
pauseOnFocus: true,
focusOnSelect: true,
accessibility: false,
mobileFirst: true
});
Fiddle
on('click', function(){ $(slider). slick('slickSetOption', 'autoplay', false, false); });
The carousel is a slideshow for cycling through a series of content, built with CSS 3D transforms and a bit of JavaScript. It works with a series of images, text, or custom markup. It also includes support for previous/next controls and indicators. Official documentation.
Yes, you are right @Rohit, Actually I think it is stop slide after the time you have entered in speed, bit better when I change speed to speed: 500
and slidesToScroll: 0.5
so it is stop in 0.5 mili second and scroll half slide in 0.5 mili second, check here
Note: It is the temporary solution when I come across this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With