Skip to content
PixiKit

Typed Line

Sentences type themselves out, pause, clear and move on, with typos, type effects and a gliding cursor.

pixikit.com/docs/effects/typed-line

Customize

Prefix color
Typing speed75ms
Initial delay0ms
Pause duration1500ms
Deleting speed50ms
Delete mode
Type effect
Mistakes0.00
Variable speed
Variable speed min60ms
Variable speed max120ms
Loop
Show cursor
Cursor style
Cursor character
Cursor color
Cursor blink duration0.50s
Cursor glide
Hide cursor while typing
Text colors0 of 10
Start on visible
Reverse mode

Props

28
NameTypeDefaultDescription
textstring | string[]""A sentence, or a list of sentences typed one after another.
asElementTypeNoneThe element to render, such as h1 or span.
prefixstring""Static text shown before the typed part.
prefixColorstring"currentColor"The colour of the prefix.
typingSpeednumber50Milliseconds between typed characters.
initialDelaynumber0Milliseconds before a sentence starts typing.
pauseDurationnumber2000Milliseconds a finished sentence stays before it is cleared.
deletingSpeednumber30Milliseconds between deleted characters; in select mode, how fast the highlight grows.
deleteMode"backspace" | "select""backspace"How a sentence is cleared: erased one character at a time, or highlighted like a selection and removed at once.
typeEffect"none" | "fade" | "blur" | "rise""none"How each character appears: instantly, fading in, sharpening from a blur, or rising into place.
mistakesnumber00 to 1: how often a wrong key is hit, noticed after a beat, erased and corrected.
variableSpeedbooleanfalseType each character after a random delay between the two bounds.
variableSpeedMinnumber60The shortest delay with variableSpeed, in milliseconds.
variableSpeedMaxnumber120The longest delay with variableSpeed, in milliseconds.
loopbooleantrueStart over after the last sentence; when off, the last sentence stays.
showCursorbooleantrueShow a blinking cursor at the typing position.
cursorStyle"character" | "bar" | "block" | "underscore""character"The shape of the cursor; character uses cursorCharacter.
cursorCharacterReactNode"|"The character or node used as the cursor in the character style.
cursorColorstring"currentColor"The colour of the cursor.
cursorBlinkDurationnumber0.5Half the length of one blink, in seconds; the cursor stays solid while typing.
cursorGlidebooleantrueGlide the cursor to each new position instead of jumping.
hideCursorWhileTypingbooleanfalseFade the cursor out while characters are typed or cleared.
cursorClassNamestringNoneExtra class names for the cursor.
textColorsstring[]NoneColours for the sentences, used in turn.
onSentenceComplete(sentence: string, index: number) => voidNoneCalled with the sentence and its index each time a sentence is cleared.
startOnVisiblebooleanfalseWait until the text scrolls into view before typing.
reverseModebooleanfalseReveal each sentence from its last character back to its first.
classNamestringNone

More text effects in Pro

View all

Related