Skip to content

v3.0.0 | TypeScript Rewrite and minor breaking changes

Compare
Choose a tag to compare
@barthy-koeln barthy-koeln released this 01 Mar 18:36
· 25 commits to main since this release

Migration from v2:

  • All options are passed in an object instead of individual constructor parameters
  • Use the .with method to initialize plugins
  • Open an issue if I've missed anything :)
const slider = new ScrollSnapSlider({ element }).with([
  new ScrollSnapAutoplay(1200),
  new ScrollSnapLoop
])