Skip to content

Displaying "empty" slides when the number of slides is not divisible by slidesToScroll #583 #584

Closed Answered by davidjerleke
lockr7 asked this question in Help
Discussion options

You must be logged in to vote

Hi @lockr7,

If I understand you correctly, you want to align the slides to the left edge of the viewport. You can try setting your options to:

const options = {
  containScroll: false, // allow leading and trailing space
  align: 'start', // align to start edge
  slidesToScroll: 3
}

Please note that you can set slidesToScroll to 'auto' and Embla will group your slides automatically based on how many slides that fit into the viewport. It may be of interest to you.

Best,
David

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@davidjerleke
Comment options

@lockr7
Comment options

Answer selected by lockr7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants