Skip to content
Discussion options

You must be logged in to vote

Seems width is controlled by

slideSize = (swiperSize - (params.slidesPerView - 1) * spaceBetween) / params.slidesPerView;

And in stack mode, we get width=swiperContainerWidth/5 , so they are small, and we stack them together, so there will be large amount of padding.


So we have to use slidesPerView: 'auto', then we can control width by css.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by linonetwo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant