Modal Morph
HTML to video · A camera move · Apache-2.0
- What it does
A small card expands into a full panel, shared-element style: both layouts measured once at mount, the container morphs by transform only (never width/height tweens) while keyed children counter-scale and re-flow onto their own…
- Get it
Copy it, or
npx hyperframes add modal-morph, to compositions/components/modal-morph.html and mount it as a sub-composition; it brings its own timeline. 5 settings to change.- Needs
Loads its libraries from the network when it renders (cdn.jsdelivr.net).
- Re-skin
By props (colors, type)
Declared variables: from_scale, expand_at, register, accent, exit. Colors and type come from theme custom properties with fallbacks (--accent, --accent-2, --bg, --border, --brand, --fg, 13 in all), so a :root block or one of the three themes re-skins it.
- License
Apache-2.0
- From