Closed davidjerleke closed 2 years ago
When containScroll is active: Spacing (like margin) added to the first and the last slide with CSS will be accounted for, when calculating the scroll snap points. Currently, these spacings are ignored.
const embla = EmblaCarousel(rootNode, { containScroll: 'trimSnaps' })
.embla__slide:first-child { margin-left: 20px; } .embla__slide:last-child { margin-right: 20px; }
Released with v7.
Feature request is related to
Describe the solution you'd like
When containScroll is active: Spacing (like margin) added to the first and the last slide with CSS will be accounted for, when calculating the scroll snap points. Currently, these spacings are ignored.