Lean

Text

Type

Colour

Ground

Ground

Motion

Plays

Checking your unlocks…

About this effect

Lean turns a headline into something to play with: the letters closest to the pointer swell in weight and width, tilt towards it and warm into the accent colour, falling off smoothly with distance. When nobody is pointing at it, an invisible cursor drifts across in a slow figure of eight, so it is never static.

It needs a variable font: weight always, width when the face has it (Archivo does, which is why it is the default). The letters are spans driven by two custom properties each, written by one animation-frame loop that stops when the heading leaves the screen.

Set it to Hover to keep the line still until someone reaches for it; raise the reach for a soft, wide wave or lower it for a tight magnifier.

Formats
React, HTML
No dependencies
Built with
CSS and a little JS
Default font Archivo
Plays
Loop, Hover
Reduced motion
Respected
Shows the finished frame

Accessibility. The heading is named by its full text; the letter spans are hidden from screen readers. Under reduced motion the letters stay at rest and ignore the pointer.

Also known as variable font hover, proximity text, cursor text effect, magnetic letters, font weight hover, interactive headline.

Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.

More pointer