HomeLabHire Me
ml-ui10 components

Get started

IntroductionInstallation

UI

Dots

Dot CalendarNewDot CodeNew

Dither

Dither GlobeNew

Text

Ink PrintNew

Data viz

Dither

Dither MapNew

Media

Dots

Dot WaveformNew

AI

Diffusion ImageNew

Backgrounds

Koi PondNewMarigoldsNewWhite BlossomNew

ml-ui / Text

Ink Print

When it scrolls into view, each word comes up through a blue-noise stipple, the grain filling in until the letters are solid, sweeping along the line word by word, with a soft spread while the ink is wet that dries as each word finishes. It's the real text all along, selectable and found by search and screen readers; only a mask is printing it. Set it in any element.

Needs: None. A CSS mask.

Customize

Props

PropTypeDefaultDescription
childrenstringrequiredThe text.
asstring"\"span\""The element it's set in: h1, p, span…
durationnumber1.4Seconds the whole line takes to print.
cellnumber2Size of one dither cell in px: the print's grain.
trigger"view" | "mount""\"view\""Print on scrolling into view, or straight away.
wetbooleantrueA soft spread on the ink while it's wet.
classNamestring–Class on the text.
styleCSSProperties–Style on the text.