UNPKG

svelte-scrolling

Version:

Scroll to given elements with smooth animation

12 lines (11 loc) 291 B
import { writable } from 'svelte/store'; import { cubicInOut } from 'svelte/easing'; export const elements = writable([]); export const globalOptions = writable({ offset: 0, duration: 500, passive: false, easing: cubicInOut, onStart: () => { }, onDone: () => { } });