Do slick slider if the number of elements is less or the same as should be displayed, then the arrows disappear and automatic scrolling stops working, how to implement it?
Codepen.io example
The fact that the arrows disappear is not critical, but the fact that scrolling no longer works very poorly.
Since I use a double slider slick, if there is no automatic scrolling in dots (the second slider), then the main one is not scrolled.
Example js, if you set the number of displayed slides to 3 (the number is greater than or equal to the sum of the slides), then autoscroll will turn off
$(document).ready(function(){ $('.slidder1').slick({ slidesToShow: 1, slidesToScroll: 2, asNavFor: '.slidder2', }); $('.slidder2').slick({ slidesToShow: 2, slidesToScroll: 1, asNavFor: '.slidder1', dots: true, autoplay: true, autoplaySpeed: 2000, }); });