@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.
16 lines (15 loc) • 408 B
TypeScript
export type FadeWordsVariantType = "default" | "up" | "down" | "left" | "right";
export 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;
};