UNPKG

svelte-scrolling

Version:

Scroll to given elements with smooth animation

6 lines (5 loc) 347 B
import type { Coord } from 'src/types/options'; import type { ElementReference } from '../types/reference'; export declare const sanitize: (hash: string) => string; export declare const getElement: (elementsList: Array<ElementReference>, reference: string) => HTMLElement | null; export declare const getPosition: (element: HTMLElement) => Coord;