Account

Originals

Creative

Split-Flap

Every character flaps through the alphabet to its new value. For arrival boards, countdowns, live statuses, scoreboards and launch pages.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add split-flap

Usage

Example
import { SplitFlap } from "@/components/galactrex/split-flap";

<SplitFlap text="Boarding" length={10} />

Source

Installs to components/galactrex/split-flap.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
textstring—The text to show; shown in capitals.
lengthnumber—Pad or cut to this many cells so the board keeps its width.
charsetstring—The order the flaps run through.
flapMsnumber70Ms per flap.
classNamestring—Extra classes for the outer element.

Variants

  • Board. Several rows with a fixed `length` each.
  • Clock. Feed it the time every second.

Accessibility

  • The final text is read once from a visually hidden copy; the flaps are aria-hidden.

Motion and reduced motion

  • Each flap is two rotateX halves in 3D; only transforms animate.
  • Reduced motion: characters change in place.