Carousel adapt to mobile phone #232
Answered
by
fancyapps
colormango
asked this question in
Q&A
-
I made a Carousel example: |
Beta Was this translation helpful? Give feedback.
Answered by
fancyapps
Feb 11, 2022
Replies: 1 comment
-
Hi, Please explain what you mean by "it is not suitable for mobile device". Use CSS to control the number of visible slides, example: /* One slide visible by default */
.carousel__slide {
width: 100%;
}
/* Two slides visible on larger screens (or 3 if the number of slides is odd and the last slide is centered) */
@media (min-width: 800px) {
.carousel__slide {
width: 50%;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
colormango
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Please explain what you mean by "it is not suitable for mobile device".
Use CSS to control the number of visible slides, example: