UNPKG

@rootenginear/svelte-action-motionone

Version:

Unofficial Svelte Action for Motion One animation library

7 lines (6 loc) 367 B
import { inView as motionInView } from 'motion'; import type { Action } from 'svelte/action'; type InViewParams = Parameters<typeof motionInView> extends [infer _, ...infer Params] ? Params : never; export type InViewActionParams = InViewParams | ((node: HTMLElement) => InViewParams); export declare const inView: Action<HTMLElement, InViewActionParams>; export {};