embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.

MIT License

Downloads
11.9M
Stars
6K
Committers
46

Bot releases are visible (Hide)

embla-carousel - v2.8.0 - Settle event

Published by davidjerleke over 4 years ago

🌟 New features

The settle event is a new feature. This feature was specified and requested in issue #48.

embla.on('settle', () => {
  console.log(`The carousel has stopped scrolling.`)
})

The settle event allows users to hook onto when the carousel has stopped scrolling.

embla-carousel - v2.7.4 - Android touch device event bug

Published by davidjerleke over 4 years ago

🛠️ Bugfixes

This patch resolves one bug:

  • It solves issue #27. When Android devices fired the mousemove event during touch interactions, Embla threw a console error. This patch comes with a fix for this issue.
embla-carousel - v2.7.0 - ScrollBy

Published by davidjerleke over 4 years ago

🌟 New features

The API method scrollBy() is a new feature. This feature was specified in issue #23 and requested in issue #21.

embla.scrollBy(0.5)

The scrollBy()method allows users to manipulate the current scroll progress by passing a number as an argument. Scroll to target is smooth.

embla-carousel - v2.6.5 - Options documentation update

Published by davidjerleke almost 5 years ago

🌟 New features

The options section in the readme has been updated with expandable details for each option:

embla-carousel - v2.6.4 - Contextmenu & Mouse Button bug

Published by davidjerleke almost 5 years ago

🛠️ Bugfixes

This patch resolves two bugs:

  • It solves issue #37 and cancels any drag interaction when contextmenu is opened.
  • For mouse events, the carousel only listens for drag events if clicked mouse button is the left button.
embla-carousel - v2.6.0 - Click Allowed

Published by davidjerleke almost 5 years ago

🌟 New features

The API method clickAllowed() is a new feature. This feature was requested in issue #22 and #24.

embla.clickAllowed()

This method is an opt-in feature. Here is how it works: It returns false if:

Mouse Pointers

  • Mouse drags the carousel.

Touch Pointers

  • Touch drags the carousel.
  • Carousel is in motion (i.e. is scrolling).

Otherwise it will return true.

embla-carousel - v2.5.5 - Updated NPM packages

Published by davidjerleke almost 5 years ago

📦 Package updates

Outdated NPM packages were updated in this release.

embla-carousel - v2.5.3 - ContainScroll bugfix

Published by davidjerleke almost 5 years ago

🛠️ Bugfixes

This release is a fix for the containScroll bug as described in issue #30.

embla-carousel - v2.5.0 - Scroll Progress

Published by davidjerleke about 5 years ago

🌟 New features

The API method scrollProgress() is a new feature. Implemented as discussed in issue #21.

embla.scrollProgress()

See this CodeSandbox for example usage.

embla-carousel - v2.4.0 - Updated containScroll behaviour

Published by davidjerleke about 5 years ago

👉 Changes

When using the option containScroll Embla will automatically merge any excessive snap points that share the same snap position as discussed in issue #19. This affects following API methods:

  • canScrollPrev()
  • canScrollNext()
  • scrollSnapList()
embla-carousel - v2.3.0

Published by davidjerleke over 5 years ago

🌟 New features

The scroll event has been added as a new feature.

embla.on('scroll', () => console.log('Carousel is scrolling'))
embla-carousel -

Published by davidjerleke over 5 years ago

embla-carousel - v2.1.14 - canScrollNext & canScrollPrev bug

Published by davidjerleke over 5 years ago

🛠️ Bug fixes

The API methods canScrollNext() and canScrollPrev() always returned false when loop: true. This solves the issue and always returns true for both these methods when loop: true.

Issue #15.

embla-carousel - v2.1.13 - Added API Demos

Published by davidjerleke over 5 years ago

👉 Changes

Added API demo links to CodeSandbox examples.

embla-carousel - v2.1.0 - New containScroll option

Published by davidjerleke over 5 years ago

🌟 New features

containScroll is now a feature. It contains slides to the carousel viewport to prevent excessive scrolling at the beginning or the end.

embla-carousel - v2.0.3 - Webpack 4 UMD window issue

Published by davidjerleke over 5 years ago

🛠️ Bugfixes

This release solves the Webpack 4 UMD module window issue.

embla-carousel - v2.0.0 - More consistent API naming, link slides

Published by davidjerleke over 5 years ago

🌟 New features

Improved drag accuracy:

  • Pointer actions have been redesigned to have a higher accuracy and feel more natural.

Improved link handling:

  • Links can now be used as slides.
  • Links can now be used inside slides.
  • Embla can differentiate between a click and drag interaction.

API methods added:

  • scrollSnapList()

⚠️ Breaking changes

API method name changes:

  • next() --> scrollNext()
  • previous() --> scrollPrev()
  • goTo() --> scrollTo()
  • selectedIndex --> selectedScrollSnap()
  • previousIndex --> previousScrollSnap()

API removed methods:

  • groupedIndexes()
embla-carousel - v1.0.0 - Redesigned API

Published by davidjerleke over 5 years ago

⚠️ Breaking changes

Options name changes:

  • groupSlides --> slidesToScroll

API method name changes:

  • hasPreviousIndex() --> canScrollPrevious()
  • hasNextIndex() --> canScrollNext()

API removed methods:

  • isLastIndex()
  • isFirstIndex()
embla-carousel - v0.9.4 - Fallback for loop options if only 1 slide

Published by davidjerleke over 5 years ago

🛠 Bugfixes

When loop: true and the carousel container only contains a single slide, it will fallback to loop: false. Discussed in issue #12.

embla-carousel - v0.9.0 - New API index methods

Published by davidjerleke over 5 years ago

🌟 New features

Added following methods to the API:

  • isFirstIndex()
  • isLastIndex()
  • hasPreviousIndex()
  • hasNextIndex()
Package Rankings
Top 1.17% on Npmjs.org