kenwheeler / slick

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

Fixed slide width and space between slides #4112

Closed quasiDigi closed 3 years ago

quasiDigi commented 3 years ago

This isn't much of a bug.

A lot of slider/carousel, have the width of the slides and the space between them fixed. The slider than just overflows its parent element, and little responsive breakpoints have to be calculated: the slider fits its parent container (no slider control) or it's larger (slider control appear).

I can't find a way to do it here. I can only find a way were the amount of slides have to be given. This can be cumbersome for small slides, and ugly for large ones (because of the big differences in the white space).

Am I missing something?

Thank you!

dharmeshds commented 2 years ago

I'm struggling with this too.. any luck?