UNPKG

svelte-scrolling

Version:

Scroll to given elements with smooth animation

10 lines (9 loc) 240 B
/** * Adds a reference to the elements that `scrollTo` should scroll * * @param reference - The reference element */ declare const scrollRef: (node: HTMLElement, reference: string) => { destroy(): void; }; export default scrollRef;