Originals
CreativeSplit-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.
npx @galactrex/ui add split-flapUsage
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.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | — | The text to show; shown in capitals. |
length | number | — | Pad or cut to this many cells so the board keeps its width. |
charset | string | — | The order the flaps run through. |
flapMs | number | 70 | Ms per flap. |
className | string | — | 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.