Shimmer Text
Web (React)
Animated text that shimmers with a flowing gradient effect.
Animated text that shimmers with a flowing gradient effect. Great for highlighting new features, primary calls-to-action, or hero section headlines.
✨ Introducing Modus UI v2.0
Build Interfaces
Faster Than Ever
Installation
CLI
npx @modus-ui/cli add shimmer-textManual
- Copy the code from the component tab.
- Create a file at
components/ui/shimmer-text.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | - | The text to display and animate. |
baseColor | string | "hsl(var(--muted-foreground))" | The main text color. |
shimmerColor | string | "hsl(var(--foreground))" | The color of the shimmer gradient. |
speed | number | 3 | Animation duration in seconds. |
spread | number | 120 | The angle of the linear gradient. |
Comments