Morphiq

Components / Text Animations / Pressure Text

Pressure Text

Type that reacts to the cursor. Letters thicken and widen under the pointer while their neighbours give up the space, so the word keeps its overall width. Both axes are synthesised from a single cut, so a letter morphs rather than cross-dissolving between two weights.

Model

Σ wᵢ′ = Σ wᵢ

each letter swells by its falloff from the cursor, then every box is rescaled so the word keeps its width

Props

PropertyTypeDefaultDescription
textstring''Rendered per glyph, and used as the element's accessible name.
weightnumber200Resting weight of the single cut the effect thickens.
boldnumber0.075Peak stroke thickening under the cursor, in em.
spreadnumber0.9How much width a letter takes from its neighbours, 0..1-ish.
cursorRadiusnumber3.2Reach of the pointer's influence, in em — it scales with the type.
smoothingnumber0.03Per-frame approach rate. Lower is slower to settle.
falloffFalloff'linear'How pressure fades with distance from the pointer: linear follows it, smooth eases at both ends, sharp squares it so only the nearest letters feel it.