Embla Carousel v2.9.0 Release Notes

Release Date: 2020-03-27 // about 4 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.