UNPKG

react-textmotion

Version:

Lightweight yet powerful library that provides variable animation effects for React applications.

19 lines (18 loc) 670 B
import { type CSSProperties, type FC } from 'react'; type Props = { text: string; style: CSSProperties; onAnimationEnd?: () => void; }; /** * @description * `AnimatedSpan` is a component that animates a text node by creating a `<span>` element with animation styles. * * @param {string} text - The text content to animate. * @param {CSSProperties} style - The inline styles to apply to the `<span>` element. * @param {() => void} [onAnimationEnd] - Callback function that is called when the animation ends. * * @returns {JSX.Element} A React element `<span>` with inline animation styles. */ export declare const AnimatedSpan: FC<Props>; export {};