Wave Text
Letters dance in a smooth sine wave pattern, creating a playful, ocean-like motion. Perfect for adding life to headers and interactive elements.
Continuous Wave
Letters continuously wave up and down in a mesmerizing pattern.
Hover Activated
Wave animation triggers on hover for interactive elements.
Subtle Motion
Gentle, barely-there motion for elegant, professional designs.
Installation
npm install framer-motionpnpm install framer-motionyarn add framer-motionbun add framer-motionProps
| Prop | Type | Default |
|---|---|---|
text? | string | required |
amplitude? | number | 20 |
frequency? | number | 0.3 |
speed? | number | 2 |
direction? | 'up' | 'down' | 'both' | 'both' |
trigger? | 'mount' | 'hover' | 'inView' | 'continuous' | 'continuous' |
className? | string | '' |
Examples
// Energetic wave
<WaveText
text="Party Time"
amplitude={30}
frequency={0.6}
speed={1}
/>
// Calm ocean wave
<WaveText
text="Peaceful"
amplitude={10}
frequency={0.2}
speed={4}
direction="up"
/>
// Interactive hover wave
<WaveText
text="Touch Me"
trigger="hover"
amplitude={20}
/>