Split-Flap Display
rotateX), horizontal split creases, mechanical hinge notches, and realistic synthesized click sounds.Variants
Split-Flap — Ivory (Classic Mechanical)
The iconic embossed cream electro-mechanical display with rust-coral slab-serif typography and tactile 3D perspective flap folds.
- Set
variant"ivory" - renders an embossed molded bezel casing with warm off-white flap cards and rust-orange typography.
soundtrue | false- synthesizes realistic physical plastic flap clicks via Web Audio API without needing external audio files.
Split-Flap — Minimalist Architectural
Ultra-clean frosted glass chassis with backdrop blur and slate-stone monospace typography that blends with light or dark mode.
- Set
variant"minimalist" - creates an architectural frosted glass frame with clean backdrop blur.
Installation
New project? Follow the installation guide to set up Tailwind CSS, shadcn, the cn helper and lucide-react, register the @algorize-ui registry once, then copy your styles from the Themes page.
Install Split-Flap Display
components/ is written into your project. Copy any snippet from a Usage tab above and it runs.
Install dependencies
Step 1 installs this for you. Run it yourself only if you are adding Split-Flap Display to an existing project by hand. The cn helper and lucide-react are not listed — the installation guide covers them once for every component.
gsap is an npm package.
Props Reference
SplitFlap
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "ivory" | "minimalist" | "ivory" | Selects between 2 handcrafted visual themes: retro ivory (default) or minimalist architectural frosted glass. |
messages | string[] | [] | Array of text strings to cycle through with cascading flip transitions. |
text | string | undefined | Direct string to display. Can also contain pipe-separated strings (e.g. "HELLO | WORLD") to cycle through automatically. |
size | "sm" | "md" | "lg" | "md" | Dimension preset for the flap cards. |
columns | number | auto | Total flap character slots. If omitted, automatically fits the longest message. |
autoPlay | boolean | true | Whether to automatically cycle through messages at the specified interval. |
interval | number | 3000 | Duration in milliseconds the message stays fully visible and stationary before flipping to the next message. |
sound | boolean | false | Whether to play realistic mechanical split-flap click sounds via Web Audio API. Can also be toggled interactively in the toolbar. |
color | string | theme default | Text accent color applied to characters and numbers. Supports preset theme names ( "lavender", "indigo", "rose", "emerald"), custom hex codes, or "default" to reset to variant default. |
speed | number | 1 | Speed multiplier for the flip cascade animation (1 = normal, 1.5 = fast). |