@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
13 lines (12 loc) • 431 B
TypeScript
import type { Snippet } from 'svelte';
import type { AnimatePresenceMode } from '../types';
type $$ComponentProps = {
children?: Snippet;
custom?: unknown;
initial?: boolean;
mode?: AnimatePresenceMode;
onExitComplete?: () => void;
};
declare const AnimatePresence: import("svelte").Component<$$ComponentProps, {}, "">;
type AnimatePresence = ReturnType<typeof AnimatePresence>;
export default AnimatePresence;