Before After Wipe
HTML to video · Before and after · Apache-2.0
- What it does
Two full-bleed content slots compare before and after states as a persistent divider wipes the after layer over the before layer and rests at a configurable split. Callers fill the named before/after slot panels.
- Get it
Copy it, or
npx hyperframes add before-after-wipe, to compositions/components/before-after-wipe.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: label_a, label_b, rest_split, wipe_at, accent, exit. Colors and type come from theme custom properties with fallbacks (--accent, --accent-2, --bg, --border, --brand, --fg, 14 in all), so a :root block or one of the three themes re-skins it.
- License
Apache-2.0
- From