v3.0.0 | TypeScript Rewrite and minor breaking changes
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
])