Displaying "empty" slides when the number of slides is not divisible by slidesToScroll #583 #584
-
Beta Was this translation helpful? Give feedback.
Answered by
davidjerleke
Sep 27, 2023
Replies: 1 comment 2 replies
-
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 Best, |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
lockr7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
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