Caret Swap

HTML to video · A title · Apache-2.0

What it does

A gradient caret expands over one phrase, collapses to the left, then types its replacement with a blinking caret. Credited to Remocn. Item license: MIT AND OFL-1.1.

Get it

Copy it, or npx hyperframes add caret-swap, to compositions/components/caret-swap.html and mount it as a sub-composition; it brings its own timeline. 7 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: from_text, to_text, font_size, font_weight, color, caret_color, caret_color_end. Type come from theme custom properties with fallbacks (--font-display), so a :root block or one of the three themes re-skins it. It also reads its own custom properties with fallbacks…

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