pnpm dlx shadcn@latest add @saturation-ui/text-effectTailwind v4 — Source Scanning
The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:
@source "../components";This ensures all utility classes in CVA variants and data attribute selectors are included in your build.
import { TextEffect } from "@/components/ui/text-effect"<TextEffect preset="fade">Hello World</TextEffect>Text reveals through blur
Words fade in with blur and slide up smoothly
Scale Up
Each word slides up into view
Character by character
First line animates in Second line follows after Third line completes the reveal
| Prop | Type | Default | Description |
|---|---|---|---|
preset | "fade" | "blur" | "slide" | — | Animation preset. |
per | "char" | "word" | "line" | "word" | Animate per character, word, or line. |
Blur Preset
Animated Text
Fade-in Blur
Words animate one by one with blur
Slide Preset
Smooth sliding animation effect