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

14 lines (13 loc) 538 B
import type { MotionProps } from '../types'; import { type Snippet } from 'svelte'; import type { SvelteHTMLElements } from 'svelte/elements'; import { type MotionValueChild } from '../utils/motionValueChild'; type Props = MotionProps & { children?: Snippet; motionValueChild?: MotionValueChild; tag: keyof SvelteHTMLElements; [key: string]: unknown; }; declare const MotionContainer: import("svelte").Component<Props, {}, "ref">; type MotionContainer = ReturnType<typeof MotionContainer>; export default MotionContainer;