react-textmotion
Version:
Lightweight yet powerful library that provides variable animation effects for React applications.
12 lines (11 loc) • 457 B
TypeScript
import type { NodeMotionProps, TextMotionProps } from '../../types';
type UseMotionControllerProps = {
componentName: 'TextMotion' | 'NodeMotion';
props: TextMotionProps | NodeMotionProps;
};
export declare const useMotionController: <T extends Element>({ componentName, props }: UseMotionControllerProps) => {
targetRef: import("react").RefObject<T | null>;
shouldAnimate: boolean;
resolvedMotion: import("../..").Motion;
};
export {};