Pressure Text, animated React component
A headline that bulges where you hover: letters near the pointer swell taller and heavier on a variable font's weight axis and take the accent colour. Each letter has its own spring, so the swell falls away smoothly on either side.
- Pro
- Motion Effects
- Hover
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Feel every word
Move along the word.Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| text | string | "Feel every word" | The headline. Each character gets its own spring. |
| accent | string | "#0071e3" | Colour the letters take near the pointer. |
| hint | string | "Move along the word." | Caption under the headline. An empty string hides it. |
| spread | number | 0.18 | Share of the word's width a letter can be from the pointer and still swell. |
| autoplay | boolean | false | Sweeps a bulge back and forth along the word until someone hovers it. |
| className | string | — | Extra classes for the root element. |