Launchable Motion

Components / Visual

Wipe diagonal

Use it as a seam: a colour sweeps across the host along a diagonal edge with a soft glow riding the edge.

Install

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

npx hyperframes add wipe-diagonal

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

Variables

VariableTypeDefaultWhat it changes
colorcolor#060308Colour of the wipe.
glowColorcolor#a964ffColour of the band riding the edge.
anglenumber35Edge angle in degrees from horizontal.
fromtop-right, top-left, bottom-right, bottom-lefttop-rightCorner the colour comes from.
modecover, revealcovercover or reveal.
atnumber0.2Seconds before the move starts.
durationnumber0.2Seconds the edge takes to cross.
glowWidthnumber30Percent of host height.
groundcolortransparentBackground; transparent to overlay.