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.

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
- 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.
- Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
- 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
- Text shimmerBrilho no texto
- Number tickerContador animado
- Physics falling textgravity letters
- Wave textsplit text
- Text scrambleLetras embaralhando
- Scatter textrepel letters
- Line mask reveal on scrollLinhas que sobem com a rolagem
- Scroll velocity marqueekinetic headline ticker