Launchable Motion

Components / Text

Text trail

Use it when a line should land with colour: glyphs appear behind a soft left to right edge (or the line rises), each one hot, cooling through a middle colour to ink.

Install

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

npx hyperframes add text-trail

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-trail" data-composition-src="compositions/text-trail.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
line1stringGenerateFirst line.
line2stringanythingSecond line, optional; rises with a smear when entrance is wipe.
line3string(empty)Third line, optional.
next1string(empty)With exit wipe: the line that uncovers behind the erase edge.
next2string(empty)Second incoming line, optional.
entrancewipe, risewipewipe uncovers glyph by glyph; rise brings the whole line up from below.
exitnone, up, flick, wipe, fadenonenone, up, flick, wipe, fade.
aligncenter, left, rightcenterWhere the text sits in the host.
sizenumber18Font size as percent of the host height.
glowbooleanfalseSoft glow growing behind the text.
trailFromcolor#ff5fd0Glyph colour on arrival.
trailViacolor#7b2fb0Colour before ink.
accentcolor#e6452cWarm colour of the flick exit.
glowColorcolor#d6c7ffCentre of the glow.
groundcolortransparentBackground; transparent to overlay.
inkcolor#1a1418Resolved text colour.
fontfont"Instrument Serif",Georgia,serifDisplay face. Instrument Serif ships with the component.
staggernumber0.045Seconds between glyph arrivals.
trailnumber0.55Seconds from trail start to ink.
inAtnumber0.04Seconds before the first glyph.
motionAmountnumber1Scales rise, smear and push.