Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

On mouse hover in slick.js sliding do not stop immediately

Tags:

slick.js

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

like image 950
Rohit Patil Avatar asked May 30 '16 14:05

Rohit Patil


People also ask

How do I stop slick slider autoplay on click?

on('click', function(){ $(slider). slick('slickSetOption', 'autoplay', false, false); });

What is carousel in slick?

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.


1 Answers

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.

like image 100
zubair khanzada Avatar answered Oct 10 '22 21:10

zubair khanzada