@rootenginear/svelte-action-motionone
Version:
Unofficial Svelte Action for Motion One animation library
8 lines (7 loc) • 466 B
TypeScript
import { scroll as motionScroll } from 'motion';
import type { Action } from 'svelte/action';
export type ScrollParams = Parameters<typeof motionScroll>;
export type ScrollActionParams = ScrollParams | ((node: HTMLElement) => ScrollParams);
export declare const scroll: Action<HTMLElement, ScrollActionParams>;
export declare const containerScroll: Action<HTMLElement, ScrollActionParams>;
export declare const scrollInView: Action<HTMLElement, ScrollActionParams>;