Kinetic Type Swap

HTML to video · A title · Apache-2.0

What it does

A held sentence keeps its fixed text in place while one widest-word masked slot rolls through alternatives and settles on the final option.

Get it

Copy it, or npx hyperframes add kinetic-type-swap, to compositions/components/kinetic-type-swap.html and mount it as a sub-composition; it brings its own timeline. 6 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: prefix, options, suffix, cues, 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

License notes are on the pack's page

From

HyperFrames

Everything from HyperFrames in the gallery

Back to the Asset Library