Skip to content

v2.7.0 - ScrollBy

Compare
Choose a tag to compare
@davidjerleke davidjerleke released this 31 Jan 11:47
· 1201 commits to master since this release

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