Launchable Motion

Components / Text

Text wobble

Use it for a working state: the glyphs of a short label bob on their own phases.

Install

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

npx hyperframes add text-wobble

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-wobble" data-composition-src="compositions/text-wobble.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
textstringGeneratingText while working.
doneTextstringDone!Text swapped in at done time. Empty for no swap.
doneAtnumber1.7Seconds until the swap.
fadeAfternumber0.75Seconds after done before the label fades. Negative keeps it.
amplitudenumber7Bob height as percent of the font size.
periodnumber0.4Seconds per bob.
alignleft, centerleftWhere the label sits.
sizenumber40Font size as percent of host height.
groundcolortransparentBackground; transparent to overlay.
inkcolor#1a1418Resolved text colour.
fontfont"Instrument Serif",Georgia,serifDisplay face. Instrument Serif ships with the component.
seednumber9Bob phases.