UNPKG

@humanspeak/svelte-motion

Version:

Framer Motion for Svelte 5. Declarative motion.<tag> components with AnimatePresence exit animations, gestures (hover, tap, drag, focus, in-view), variants, FLIP layout animations, shared-layout transitions, spring physics, and scroll-linked motion values

17 lines (16 loc) 646 B
import { type FeatureBundle, type LazyFeatureBundle } from '../features'; import { type Snippet } from 'svelte'; /** * Props accepted by the LazyMotion component. */ type Props = { /** Child content rendered inside the active LazyMotion context. */ children?: Snippet; /** Eager or async feature bundle used by descendant `m.*` components. */ features: FeatureBundle | LazyFeatureBundle; /** Enables strict LazyMotion usage checks. Defaults to false. */ strict?: boolean; }; declare const LazyMotion: import("svelte").Component<Props, {}, "">; type LazyMotion = ReturnType<typeof LazyMotion>; export default LazyMotion;