Animated Text

Text reveal component with multiple animation presets: blink, rise, expand, glide, cascade, flicker, elastic, float.

Cascade

Flicker

Blink

Blink

Expand

Expand

Rise

Rise

Glide

Glide

Elastic

Elastic

Float

Float

Animated Text cycles through eight preset reveal styles on a single React component: blink, rise, expand, glide, cascade, flicker, elastic, and float. Each variant uses Framer Motion under the hood with controls for delay, duration, and stagger. Drop it into a hero heading, page title, or price callout where you want typography to carry the entrance.

Installation

Usage

import { AnimateText } from "@/components/ui/animated-text";
<AnimateText
  text="Modern UI Components"
  type="cascade"
  className="text-2xl font-bold"
  delay={0}
  duration={0.5}
  custom={1}
/>

Props

PropTypeDefaultDescription
textstringRequiredThe text content to be animated.
type"blink" | "rise" | "expand" | "glide" | "cascade" | "flicker" | "elastic" | "float""elastic"Animation style to apply to the text.
classNamestring""Additional CSS classes to apply to the component.
delaynumberundefinedDelay before animation starts.
durationnumberundefinedDuration of the animation.
customnumber1Custom parameter passed to animation variants (used for stagger/delay scaling).