Counts up to a value with an eased finish when it scrolls into view.
An airport departures board: every tile flips through its drum, one character at a time, to land on your text.
Customize
Usage
import { SplitFlap } from "@/components/motionkit/split-flap";
<SplitFlap text="DEPARTURES" className="text-4xl" />Motion
The exact curves this component runs, plotted with Motion's own maths.
Flips
Scrolls into view
Travel, events and logistics brands, launch dates, live counters and any headline that suits a departures-board feel.
One clock drives the whole board. On each tick, every tile that hasn't reached its character flips forward by one place on its drum, always forwards, the way a real drum turns. Each tile is two halves plus a falling flap that rotates about the hinge line with a 3D perspective, and tiles start in a short stagger from left to right. With reduced motion on, the board shows the final text straight away.
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | — | What the board should read. Change it and the tiles flip to the new text. |
| length | number | — | Tile count. Shorter text is padded with blanks; defaults to the text length. |
| charset | string | A–Z, 0–9 and common punctuation | Characters on each drum, in flip order. |
| flipSpeed | number | 70 | Milliseconds per flip. |
| stagger | number | 40 | Milliseconds between each tile starting. |
| trigger | "view" | "mount" | "view" | Start on scroll into view, or straight away. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Only the motion package, beside React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/split-flap. It saves the file to components/motionkit and installs its dependencies.
Split-Flap Display is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, the board shows the final text with no flipping.
Counts up to a value with an eased finish when it scrolls into view.
Words lift out of a blur one after another as the line scrolls into view.
Headlines that arrive word by word or letter by letter: slide, blur, hinge or rise from behind a mask, from any direction.
The live preview is free to explore. Plus unlocks the source for Split-Flap Display and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { SplitFlap } from "@/components/motionkit/split-flap";
<SplitFlap text="DEPARTURES" className="text-4xl" />Motion
The exact curves this component runs, plotted with Motion's own maths.
Flips
Scrolls into view