fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

TextTyping

Types a line of text one character at a time, restarting when the text changes or the line becomes active again.

Install

TextTyping is a Svelte 5 animated ASCII text typing component in @fractaldesign/machines-ui. It works in SvelteKit and in any Svelte 5 app.

pnpm add @fractaldesign/machines-ui

Props

NameTypeDefault
textToAnimate string The full line to type; its characters are revealed in order.'this is the one'
active boolean Types only while true. Flip it on and the line types from empty; flip it off and the full text is shown at once. Anything not currently being animated should read its label plainly, not re-type.true
trigger unknown Optional extra dependency. Change it to re-type while already active — for a loop that returns to the same item, say.—
duration number Milliseconds for a full line. Default 900.900