Documentation
Text Effectstextrevealwave
Wave Text
Text with center Wave effect animation .
wave-text.tsx
CENTER WAVE EFFECT
Installation
Terminal
1npx shadcn@latest add "https://sniper-ui-coral.vercel.app/r/wave-text.json"Auto-Installed Dependencies
The CLI will automatically install these packages.
Terminal
1npm install gsapUsage
Basic
page.tsx
1import { WaveText } from "@/components/ui/wave-text";
2
3export default function MyPage() {
4 return (
5 <WaveText color="#ff6b35" repeatDelay={1.5}>
6 <h1 className="text-6xl">CENTER WAVE EFFECT</h1>
7 </WaveText>
8 );
9}Examples
examples.tsx
1import WaveText from "@/components/ui/wave-text";
2
3export default function MyPage() {
4 return (
5 <div className="space-y-4">
6 {/* Warm orange wave */}
7 <WaveText color="#ff6b35" repeatDelay={0.8}>
8 <h1 className="text-5xl font-bold">Fast Wave</h1>
9 </WaveText>
10
11 {/* Cool blue wave */}
12 <WaveText color="#2b6bbb" repeatDelay={2}>
13 <p className="text-2xl">Subtle wave effect</p>
14 </WaveText>
15 </div>
16 );
17}Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | — | The content to apply the wave effect to. |
color | string | "#ff6600ff" | The color of the wave effect. |
repeatDelay | number | 1.5 | Seconds to wait before repeating the animation. |

Sniper UI
An open-source library available on GitHub — contribute or star the repo to support it.
Categories