Documentation
Text Effectstextrevealwave

Wave Text

Text with center Wave effect animation .

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 gsap

Usage

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

PropTypeDefaultDescription
childrenReact.ReactNodeThe content to apply the wave effect to.
colorstring"#ff6600ff"The color of the wave effect.
repeatDelaynumber1.5Seconds to wait before repeating the animation.