Morphing Text, animated React component
A keyword that melts into the next one. Two blurred copies meet under an SVG alpha threshold, so the letters flow into new letters instead of cross-fading. The threshold is only on during the morph, so resting text stays crisp, and a pause button stops the cycle.
- Pro
- Motion Effects
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Interfaces that feelalive.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| lead | string | "Interfaces that feel" | Static line above the morphing word. An empty string hides it. |
| words | string[] | ["alive.", "tactile.", "physical.", "inevitable.", "yours."] | The words to cycle through. |
| morphTime | number | 1.1 | Seconds each morph takes. |
| holdTime | number | 1.6 | Seconds each word rests before the next morph. |
| align | "left" | "center" | "right" | "center" | Alignment of the lead line and the word. |
| color | string | "#0071e3" | Colour of the morphing word. |
| autoplay | boolean | false | Cycles through the words on its own. Off, it rests on the first word until Play is pressed. Pauses off screen, and reduced motion swaps words with a plain fade. |
| className | string | — | Extra classes for the wrapper. |