Releases: davidjerleke/embla-carousel
v2.3.0
🌟 New features
The scroll
event has been added as a new feature.
embla.on('scroll', () => console.log('Carousel is scrolling'))
v2.2.0
2.2.0
v2.1.14 - canScrollNext & canScrollPrev bug
🛠️ 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.
v2.1.13 - Added API Demos
👉 Changes
Added API demo links to CodeSandbox examples.
v2.1.0 - New containScroll option
🌟 New features
containScroll
is now a feature. It contains slides to the carousel viewport to prevent excessive scrolling at the beginning or the end.
v2.0.3 - Webpack 4 UMD window issue
🛠️ Bugfixes
This release solves the Webpack 4 UMD module
window issue.
v2.0.0 - More consistent API naming, link slides
🌟 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()
v1.0.0 - Redesigned API
⚠️ Breaking changes
Options name changes:
- groupSlides -->
slidesToScroll
API method name changes:
- hasPreviousIndex() -->
canScrollPrevious()
- hasNextIndex() -->
canScrollNext()
API removed methods:
- isLastIndex()
- isFirstIndex()
v0.9.4 - Fallback for loop options if only 1 slide
🛠 Bugfixes
When loop: true
and the carousel container only contains a single slide, it will fallback to loop: false
. Discussed in issue #12.
v0.9.0 - New API index methods
🌟 New features
Added following methods to the API
:
isFirstIndex()
isLastIndex()
hasPreviousIndex()
hasNextIndex()