Dot Type
The headline is set in the 5 x 7 dot face. Move over it and a magnifier passes across the dots: those under it swell, pushed a little outward as a loupe bends what's under it, and warm toward the accent, settling back as it moves on. It's sized from the font size like any heading, wraps between words, and keeps the real text for screen readers and search. The pointer is read from the window, so links laid over it still work.
Needs: None. Canvas 2D.
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | required | The text. |
| as | string | "\"h2\"" | The element it's set in. |
| lens | number | 90 | The magnifier's radius in px. |
| swell | number | 1.9 | How much bigger the dots under it grow. |
| tone | string | – | What the dots warm toward. The page's accent by default. |
| className | string | – | Class on the headline: its font size sets the dots' size. |
| style | CSSProperties | – | Style on the headline. |