v2.9.0 - Percent Alignment
🌟 New features
The percent alignment
is a new feature. This feature was specified and requested in issue #49.
const options = { align: 0.2 }
const embla = EmblaCarousel(emblaNode, options)
This feature allows users to specify percentage alignment by passing a number, where a fraction like 0.2
represents 20% of the viewport size. Percentage will be measured from the start edge of the viewport.