Launchable Motion

Components / Visual

Mosaic reveal

Use it for a generated image arriving: the image starts as a thin horizontal line, the top edge snaps up and the bottom frontier travels down as a band of coarse pixels with a jagged edge.

Install

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

npx hyperframes add mosaic-reveal

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

Variables

VariableTypeDefaultWhat it changes
imageimageassets/photo.svgCovers the host.
blockSizenumber4Percent of host height.
revealDurationnumber1Seconds for the frontier to reach the bottom.
startLinenumber0.4Fraction of the height where the line starts.
atnumber0.02Seconds before the move starts.
exitnone, shrinknonenone or shrink.
groundcolortransparentBackground; transparent to overlay.
seednumber7Deterministic scatter.