Launchable Motion

Components / UI

Highlight box

Use it to point at something on a screenshot: selection draws a text highlight left to right over a rect; scan grows a translucent fill from the centre of a rect and fades a frame in around it, then reverts.

Install

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

npx hyperframes add highlight-box

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

Variables

VariableTypeDefaultWhat it changes
modeselection, scanselectionselection or scan.
rectstring30,20,40,8x,y,w,h in percent of the host.
colorcolor#7fb4ffHighlight or scan fill colour.
framecolor#8ec5ffScan frame colour.
opacitynumber0.550 to 1.
atnumber0.2Seconds before the box appears.
holdnumber1Seconds the box stays before reverting. Negative keeps it.
groundcolortransparentBackground; transparent to overlay.