Launchable Motion

Components / Text

Text swap

Use it for a status line or any label that changes: each new label rises in from below with a vertical smear while the old one leaves upward, two frames of overlap.

Install

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

npx hyperframes add text-swap

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-swap" data-composition-src="compositions/text-swap.html"
     data-start="0" data-duration="5" data-track-index="1"
     style="position:absolute;left:0;top:0;width:1920px;height:1080px"></div>

Variables

VariableTypeDefaultWhat it changes
labelsstringGoing to ‘launchable.video’|Extracting styles|Building brand kitPipe separated, in order.
intervalnumber1.5Seconds each label holds.
timesstring(empty)Optional pipe separated seconds for each swap; overrides interval.
inAtnumber0.1Seconds before the first label rises.
directionup, downupup: new label comes from below. down: from above.
aligncenter, left, rightcenterWhere the text sits in the host.
sizenumber9Font size as percent of the host height.
groundcolortransparentBackground; transparent to overlay.
inkcolor#1a1418Resolved text colour.
fontfont"Instrument Serif",Georgia,serifDisplay face. Instrument Serif ships with the component.
exitnone, outnonenone holds the last label; out leaves the same way.