Line Swap
HTML to video · A title · Apache-2.0
- What it does
A masked full-line beat replacement: line A holds center then exits up through an overflow-hidden mask as line B enters bottom-up on the same beat, with an optional accent underline drawing beneath one word of line B.
- Get it
Copy it, or
npx hyperframes add line-swap, to compositions/components/line-swap.html and mount it as a sub-composition; it brings its own timeline. 6 settings to change.- Needs
Loads its libraries from the network when it renders (cdn.jsdelivr.net).
- Re-skin
By props (colors, type, text)
Declared variables: line_a, line_b, swap_at, underline_word, accent, exit. Colors and type come from theme custom properties with fallbacks (--accent, --accent-2, --bg, --brand, --fg, --font-display), so a :root block or one of the three themes re-skins it.
- License
Apache-2.0
- From