Focus Swap
HTML to video · A camera move · Apache-2.0
- What it does
Moves attention between two side-by-side cards as one recedes with scale, blur, and dimming while the other advances to full focus.
- Get it
Copy it, or
npx hyperframes add focus-swap, to compositions/components/focus-swap.html and mount it as a sub-composition; it brings its own timeline. 3 settings to change.- Needs
Loads its libraries from the network when it renders (cdn.jsdelivr.net).
- Re-skin
By props (colors, type)
Declared variables: focus, blurPx, dim. Colors and type come from theme custom properties with fallbacks (--bg, --border, --fg, --font-body, --font-display, --font-mono, 11 in all), so a :root block or one of the three themes re-skins it.
- License
Apache-2.0
- From