Launchable Motion

Components / Visual

Blur reveal

Use it for anything that is being worked on: the slot content (an image or any HTML) sits heavily out of focus at reduced opacity, sharpens a little while waiting, then snaps to focus at the reveal time under a slow push.

Install

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

npx hyperframes add blur-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. It also takes HTML in a <template data-slot="blur-reveal-content"> in the host page.

<div data-composition-id="blur-reveal" data-composition-src="compositions/blur-reveal.html"
     data-start="0" data-duration="4" data-track-index="1"
     style="position:absolute;left:0;top:0;width:1920px;height:1080px"></div>

Variables

VariableTypeDefaultWhat it changes
imageimageassets/poster.svgUsed when no content slot is provided. Fitted inside the host.
blurStartnumber3Percent of host height.
preSharpennumber0.6Fraction of the blur left when the reveal starts.
opacityStartnumber0.75Opacity while waiting.
revealAtnumber1.7Seconds until focus snaps.
revealDurationnumber0.6Seconds to full focus.
pushnumber0.06Scale gained over the duration.
exitnone, shrinknonenone or shrink.
exitTintcolor#ebe4ffGround colour during the shrink exit.
groundcolortransparentBackground; transparent to overlay.