@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) • 588 B
TypeScript
import type { MotionDomProjectionAdapter } from '../utils/motionDomProjection';
/**
* Publish the current upstream motion-dom projection adapter to descendants.
*
* @param node Current component projection adapter, or `null` to clear.
*/
export declare const setMotionDomProjectionParent: (node: MotionDomProjectionAdapter | null) => void;
/**
* Read the nearest upstream motion-dom projection adapter.
*
* @returns Parent projection adapter, or `null` when no motion ancestor exists.
*/
export declare const getMotionDomProjectionParent: () => MotionDomProjectionAdapter | null;