Toggle Flip

HTML to video · A whole scene · Apache-2.0

What it does

An oversized UI toggle switch that flips with real physicality: thumb overshoot, track color crossfade, and a soft press-compress before release. The reference prop of the ui-props family.

Get it

Copy it, or npx hyperframes add toggle-flip, to compositions/components/toggle-flip.html and mount it as a sub-composition; it brings its own timeline. 3 settings to change.

Source on GitHub
Needs

Loads its libraries from the network when it renders (cdn.jsdelivr.net).

Re-skin

By props (colors, type, text)

Declared variables: direction, label, size. Colors and type come from theme custom properties with fallbacks (--accent, --bg, --border, --brand, --fg, --font-body, 10 in all), so a :root block or one of the three themes re-skins it.

License

Apache-2.0

License notes are on the pack's page

From

HyperFrames

Everything from HyperFrames in the gallery

Back to the Asset Library