UNPKG

@rootenginear/svelte-action-motionone

Version:

Unofficial Svelte Action for Motion One animation library

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