github davidjerleke/embla-carousel v2.9.0
v2.9.0 - Percent Alignment

latest releases: v8.6.0, v8.5.2, v8.5.1...
5 years ago

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

Don't miss a new embla-carousel release

NewReleases is sending notifications on new releases.