Skip to content
Discussion options

You must be logged in to vote

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%;
    }
  }

Replies: 1 comment

Comment options

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