← Labs

Distort Text

Letters bend, stretch and shift colour as the cursor gets close to them.

How it works

Each letter is its own element. On pointer move, the page measures every letter's centre and writes two values into CSS variables: how close the cursor is (0 to 1) and the direction away from it. Letters are pushed and leaned away from the cursor, and the colour shifts with closeness.