A lightweight carousel library with fluid motion and great swipe precision.
MIT License
Bot releases are visible (Hide)
Published by davidjerleke over 4 years ago
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.
Published by davidjerleke over 4 years ago
This patch resolves one bug:
Published by davidjerleke over 4 years ago
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.
Published by davidjerleke almost 5 years ago
The options section in the readme has been updated with expandable details for each option:
Published by davidjerleke almost 5 years ago
This patch resolves two bugs:
Published by davidjerleke almost 5 years ago
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
Touch Pointers
Otherwise it will return true
.
Published by davidjerleke almost 5 years ago
Outdated NPM packages were updated in this release.
Published by davidjerleke almost 5 years ago
This release is a fix for the containScroll
bug as described in issue #30.
Published by davidjerleke about 5 years ago
The API method scrollProgress()
is a new feature. Implemented as discussed in issue #21.
embla.scrollProgress()
See this CodeSandbox for example usage.
Published by davidjerleke about 5 years ago
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()
Published by davidjerleke over 5 years ago
The scroll
event has been added as a new feature.
embla.on('scroll', () => console.log('Carousel is scrolling'))
Published by davidjerleke over 5 years ago
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.
Published by davidjerleke over 5 years ago
Added API demo links to CodeSandbox examples.
Published by davidjerleke over 5 years ago
containScroll
is now a feature. It contains slides to the carousel viewport to prevent excessive scrolling at the beginning or the end.
Published by davidjerleke over 5 years ago
This release solves the Webpack 4 UMD module
window issue.
Published by davidjerleke over 5 years ago
Improved drag accuracy:
Improved link handling:
API methods added:
scrollSnapList()
API method name changes:
scrollNext()
scrollPrev()
scrollTo()
selectedScrollSnap()
previousScrollSnap()
API removed methods:
groupedIndexes()
Published by davidjerleke over 5 years ago
Options name changes:
slidesToScroll
API method name changes:
canScrollPrevious()
canScrollNext()
API removed methods:
Published by davidjerleke over 5 years ago
When loop: true
and the carousel container only contains a single slide, it will fallback to loop: false
. Discussed in issue #12.
Published by davidjerleke over 5 years ago
Added following methods to the API
:
isFirstIndex()
isLastIndex()
hasPreviousIndex()
hasNextIndex()