Launchable Motion

Components / Visual

Sprite pop

Use it for organic accents or a full cover: N copies of a sprite pop around a focal point one after another with an overshoot, keep growing, then shrink and fade together.

Install

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

npx hyperframes add sprite-pop

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

Variables

VariableTypeDefaultWhat it changes
spriteimageassets/petal.svgPetal, leaf, mark, blob.
modecover, accents, explicitcovercover, accents, or explicit positions.
countnumber16Sprites (cover and accents).
positionsstring50,72,1.7|30,32,0.7|70,32,0.7Explicit mode: pipe separated x,y,scale in percent of host and a scale factor.
focalstring50,50x,y in percent of the host.
sizenumber34Sprite size as percent of host height.
atnumber0.1Seconds before the first sprite pops.
staggernumber0.045Seconds between pops.
multiplybooleantrueBlend sprites into what is under them.
exitshrink, noneshrinkshrink fades all sprites in the last 0.2 s; none keeps them.
groundcolortransparentBackground; transparent to overlay.
seednumber7Deterministic scatter.