UNPKG

@stianlarsen/react-fade-effects

Version:

A collection of React components for smooth fade-in animations, starting with FadeWords. Easily add fade effects to your UI elements with customizable options.

22 lines (18 loc) 755 B
import * as react_jsx_runtime from 'react/jsx-runtime'; type FadeWordsVariantType = "default" | "up" | "down" | "left" | "right"; type FadeWordsProps = { words: string | string[]; className?: string; filter?: boolean; duration?: number; staggerTime?: number; delay?: number; variant?: FadeWordsVariantType; scaleSize?: number; once?: boolean; translateAmount?: number; splitChar?: string | RegExp; includeSpaces?: boolean; }; declare const FadedWords: ({ words, className, filter, duration, staggerTime, delay, variant, scaleSize, once, translateAmount, splitChar, includeSpaces, }: FadeWordsProps) => react_jsx_runtime.JSX.Element; export { type FadeWordsProps, type FadeWordsVariantType, FadedWords };