Launchable Motion

Components / UI

Window frame

Use it to show a website or app: browser chrome with an address pill around a screen slot (or a tall screenshot), filling the host.

Install

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

npx hyperframes add window-frame

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="window-frame-screen"> in the host page.

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

Variables

VariableTypeDefaultWhat it changes
screenimageassets/page.svgTall page image; used when no screen slot is provided.
urlstringlaunchable.videoAddress pill text.
scrollsstring2,75|4.2,160Pipe separated t,offset with offset in percent of the screen width (cumulative).
loadInbooleantrueFade the arriving section from faint to solid after each scroll.
columnbooleantrueWhite left column with orb and label.
labelstringBuilding brand kitText in the column.
orbColorcolor#ff6b6bDocked orb colour.
radiusnumber2.5Corner radius as percent of host height.
enternone, rise, flynonenone, rise, or fly (from the right with a tilt).
inkcolor#1a1418Text colour.
fontfont"Instrument Serif",Georgia,serifDisplay face.
groundcolortransparentBackground; transparent to overlay.