vibran

Variable font weight

Also called: breathing type

Each letter gets heavier and wider depending on its distance from the cursor, in a weight wave that follows the mouse. With no mouse, the weight ripples on its own, as if the text were breathing.

Preview of Variable font weight running live
Copy the promptAdjust colors and speed

When to use it

For brand headings about movement, wellness, music or typography. It only works with a truly variable font: check that the font has the wght (weight) axis and, optionally, wdth (width). Declare the axes in data-eixos with min and max. If the font isn't variable the letters just grow slightly. Wider letters shift the line, so leave extra room.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<h1 data-efeito="texto-peso-variavel" data-eixos="wght:100:900|wdth:62:125" style="font-family:'Archivo'">Respira fundo</h1>

More text effects

All 27 text effects →