Launchable Motion

Components / Text

Text type

Use it when text should be typed: characters land whole with seeded jitter around the rate, no caret.

Install

With this registry set in hyperframes.json (see the docs):

npx hyperframes add text-type

Use it in a composition

It fills whatever box you give it, so set the host element's size and position. Set values withdata-variable-values.

<div data-composition-id="text-type" data-composition-src="compositions/text-type.html"
     data-start="0" data-duration="3" data-track-index="1"
     style="position:absolute;left:0;top:0;width:1920px;height:1080px"></div>

Variables

VariableTypeDefaultWhat it changes
textstringlaunchable.videoWhat gets typed.
placeholderstringdomain.comShown before typing, fades out. Empty for none.
cpsnumber14Rate before jitter.
typeAtnumber0.6Seconds before the first character.
greyLandingbooleanfalseCharacters land grey and darken to ink 0.12 s later.
alignleft, centerleftWhere the text sits.
sizenumber30Font size as percent of host height (the host is usually one text row).
placeholderColorcolor#797578Colour of the placeholder.
greycolor#a39da1Colour a character lands in when grey landing is on.
groundcolortransparentBackground; transparent to overlay.
inkcolor#1a1418Resolved text colour.
fontfont"Instrument Serif",Georgia,serifDisplay face. Instrument Serif ships with the component.
seednumber11Typing jitter.