kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.49k stars 5.89k forks source link

Slick slider with 10 slides and 2 rows doesn`t work #4201

Open VLadFurmanyuk opened 2 years ago

VLadFurmanyuk commented 2 years ago

I have a slider on a page. 10 slides in 2 rows. Following the design, I need there to be 3 dots. I registered SliderToShow: 3, SliderToScroll: 2, but instead of two slides, 4 slides are scrolled, and the third button becomes not working. Here is a link to jsFiddle. http://jsfiddle.net/jy8xoqbp/30/ Thank you very much for your attention!

Here are my js code:

$(document).ready(function (){ $('.slider').slick({ arrows: false, dots: true, slidesToShow: 3, slidesToScroll: 2, rows: 2, slidesToScroll: 2, }); });