Skip to content

v2.9.0 - Percent Alignment

Compare
Choose a tag to compare
@davidjerleke davidjerleke released this 27 Mar 07:50
· 1136 commits to master since this release

🌟 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.