Type Proximity
Typography grid modulating variable font weight and width by pointer distance.
Typography grid modulating variable font weight and width by pointer distance.
Dynamic typography matrix where every letter calculates its distance to your finger or cursor, fluidly morphing its variable weight, width, and tint axes without layout thrashing.
| Prop | Type | Default | Description |
|---|---|---|---|
| rad | number | 240 | Proximity influence radius in pixels around pointer. |
| wmin | number | 200 | Font weight when pointer is far. |
| wmax | number | 850 | Font weight when pointer is directly hovering. |
| dmin | number | 75 | Font width percentage axis when pointer is far. |
| dmax | number | 100 | Font width percentage axis when pointer is near. |
| fall | number | 1.6 | Exponential distance attenuation curve power. |
| size | number | 11 | Font size in viewport width units (vw). |
| ease | number | 0.22 | Per-frame interpolation smoothing factor. |
| idle | number | 0.7 | Sine wave idle sweep speed multiplier. |
| hue | number | 0.85 | Accent color shift intensity factor. |
| tint | string | "#ff4a2b" | Hover accent color blended with ink. |
| bg | string | "#e8eaee" | Substrate background color. |
| ink | string | "#0d0e12" | Resting text color. |
| lines | string[] | ["Weight", "follows", "your touch"] | Array of text lines displayed on stage. |
| paused | boolean | false | Pause animation loop manually. |