kenwheeler / slick

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

Fill Rows Then Columns #4150

Closed shahidbahader closed 1 year ago

shahidbahader commented 2 years ago

Slides always fill columns before rows

====================================================================

Is there a way we can set it to fill rows before columns?

If we have set the rows: to 2

and the slidesToShow is 3

Then it is always displaying like this

1 3 5 2 4 6

Is there a way we can display it like

1 2 3 4 5 6

====================================================================

joshmoto commented 2 years ago

Remove slidesToShow: 3 option...

...and use slidesPerRow: 3 option instead 👌🏼

See working example here... https://jsfiddle.net/joshmoto/xvs87qm3/1/

Which outputs this layout...

1 2 3 4 5 6

shahidbahader commented 1 year ago

Thanks that worked for me.