Launchable Motion

Components / Visual

Specular sweep

Use it on a surface that just changed: a soft light band sweeps across the host once.

Install

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

npx hyperframes add specular-sweep

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

Variables

VariableTypeDefaultWhat it changes
colorcolor#ffffffBand colour.
opacitynumber0.95Peak opacity.
widthnumber20Band width as percent of host width.
anglenumber28Degrees.
directionrtl, ltrrtlrtl or ltr.
atnumber0.1Seconds before the move starts.
durationnumber0.5Seconds for one sweep.
groundcolortransparentBackground; transparent to overlay.