A
A
azaza2019-10-14 14:23:37
JavaScript
azaza, 2019-10-14 14:23:37

Slick slider - the number of slides does not work correctly if I set it to 2 wtf rows?

Slick slider
I can't understand what's going

on I need to display 3 items in a row, I need a slider
in 2 rows

$(document).on('ready', function() {
  $(".hitblock").slick({
        slidesToShow: 6,
        rows:2,
        slidesToScroll: 1
      });
});

displays 5 in 2 lines

5da45aed90720056554947.png

if you set slidesToShow: 4 or less than 4, shows 1 item in the 2nd row,
5da45a47127e4377190188.png

what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azaza, 2019-10-14
@natojezlo

-- UNDERSTAND--
GRID layout by fractions in this case, the
left and right columns of the site is not appropriate, the slider leaves an indefinite distance to the right under overflow hidden
must be set in percentages or pixels

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question