A
A
Alice7772017-08-02 22:10:12
css
Alice777, 2017-08-02 22:10:12

Is it possible, when resizing slick-slider, to specify not the number needed for the breakp. slides, but to make its parent with overflow:hidden effect?

It is written and understandable, I will explain in the pictures: There is such a slider: 2aa506565a6c4bed93952b0e593cabf1.png
I need to fit exactly as many slides when resizing the page as it can fit in the parent block (and with the overflow: hidden effect)
something like this:ad5efa2a7d8d4c61886ca63b50ac6bb0.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pushkarev, 2017-08-02
@Alice777

As I understand you need:variableWidth: true

$('...').slick({
  dots: true,
  infinite: true,
  speed: 300,
  slidesToShow: 1,
  variableWidth: true
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question