How to set slide width in virtual mode? #6217
Unanswered
zhaozhemin
asked this question in
Q&A
Replies: 1 comment
-
|
You can't use slidesPerView in auto because as stated in #2287 virtual slides must know the slide size before it is rendered. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Normally, you can set slide width by writing CSS, e.g.
.swiper-slide { width: 80% }, whenslidesPerViewisauto. Butvirtual: truecannot be used withslidesPerView: auto. If I override the width with!importantusing CSS, the width is right but thetransformetc., is all wrong.Beta Was this translation helpful? Give feedback.
All reactions