Skip to content
IndexRequest a UIAboutContact

Text Weight Proximity Hover

Each letter grows heavier and lifts as the pointer comes near, falling off smoothly with distance.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Typographic poster of the word Proximity set in a large rounded sans-serif, the letters near the centre much heavier, taller and slightly raised, fading smoothly to light thin letters at both ends, as if a soft invisible wave passes under the word, off-white background, near-black type, a small cursor arrow icon near the heaviest letter. Negative: gradients, shadows, clutter, text errors. Reduced motion: still poster.

About this pattern

Definition

A proximity effect makes type react to the cursor. Every letter measures its distance to the pointer and sets its own weight, size or lift from that number, so a soft wave follows the mouse across the word. It turns a headline into something you can feel without any click.

When to use it

  • Split the text into letter spans; keep the full word readable to screen readers with an aria-label on the container.
  • On pointer move compute each letter's distance and map it with a smooth falloff to weight, scale and lift.
  • Update styles only, never rebuild elements, and use requestAnimationFrame.
  • Reset gently when the pointer leaves.

What the controls do

  • Move the pointer or touch across the word; choose the effect and radius.

Motion & timing

  • Letters follow the pointer with a 120ms ease.
  • Reduced motion: letters stay still.

Tips & variations

  • Fonts without variable weight axes show only two or three steps; use scale and lift too.
  • Keep layout stable: use transforms, and give letters a fixed width cell if weight changes shape.

Code of this live preview

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Effect"><button data-p="0" aria-pressed="true">Weight</button><button data-p="1" aria-pressed="false">Lift</button><button data-p="2" aria-pressed="false">Both</button></div><div class="tz" id="tz" role="group" aria-label="Proximity"></div><label class="rw">Radius <b id="rv">90px</b><input id="rs" type="range" min="40" max="160" value="90"></label></div>

Related patterns

Wave, Bounce & Tilt Letters

↗
Wave, Bounce & Tilt LettersKinetic Typography

Scramble Text Decode

↗
Scramble Text DecodeKinetic Typography

Magnetic Button

↗
Magnetic ButtonButtons & Actions