react-layout-motion
Version:
React layout animation library (coming soon)
4 lines (3 loc) • 317 B
TypeScript
import type { MotionAnimationConfig } from "../types";
import { noop } from "../utils/noop";
export declare function useLayoutAnimation<T extends HTMLElement>(layoutId?: string, config?: MotionAnimationConfig, onLayoutAnimationStart?: typeof noop, onLayoutAnimationComplete?: typeof noop): React.RefObject<T | null>;