I'm using the Slick Carousel, but there's one layout itch I can't scratch. When I have fewer items than the carousel can display at once, they're left-justified. I'd like them to be centered. For example, with slidesToShow
equal 3 and only 2 items, I get
-------------------
IIIII IIIII
-------------------
when what I want is
-------------------
IIIII IIIII
-------------------
or if there's only 1 item:
-------------------
IIIII
-------------------
I've tried setting centerMode
, but that's a completely different effect.
Is there a way to get the effect I want? It needs to handle slidesToShow
being reduced by responsive breakpoints.