Skip to content
ReactHive

Flap Board

A split-flap board, like an old departures board. Each character is a flap that turns over through the alphabet to its next letter, so a change runs across the board in a ripple of flips, every cell on its own count. It cycles through sets of rows, flips straight to the next set on a click, and a hovered row turns over to its second message.

TextInspired by InsporaNo packages, just React and Tailwind CSS
Flap BoardText

How It Works

Each cell has four halves: the resting top and bottom, and two flaps. To move one letter on, the resting top takes the new letter and the top flap, still showing the old one, falls away to 90 degrees; then the bottom flap, showing the new letter's lower half, swings down from 90 to flat over the old bottom, which then takes the new letter. A cell repeats that through the alphabet until it reaches its target, starting on a small delay that grows across the row, so a change ripples.

Use It

Install it with shadcn, or copy the file into your components folder, then use it like this. Change a setting in the demo and the example picks it up. Works with Next.js (App Router) and any React 19 project on Tailwind CSS v4.

npx shadcn@latest add @reacthive/flap-board
Example
<FlapBoard sets={[["06:20  LISBON", "09:45  NEW YORK"], ["NOW BOARDING", "SAY HELLO"]]} columns={18} />
  • sets is a list of row lists; the board cycles through them every interval seconds (0 holds the first) and a click flips to the next. Rows are padded or cut to columns characters. Letters, digits and : . , - / & ! ? ' are on the flaps.
  • alternates gives a second message per row of a set, shown while that row is hovered. speed is how long each flap takes, in milliseconds. Set the font, size and colour on the board itself; --flap sets the flap colour.
  • It's one element per half flap, so it's light: a 5 by 18 board is 90 cells. Screen readers get the first set as text. With reduced motion the letters change without flipping.
  • No packages: each flip is two Web Animations on two half cards, one falling away and one swinging in.

Flap Board, Answered.

Free to use, what it needs and where it came from.

Your Next Site Starts with a Live Demo.

Click around first. What you see is exactly what you download.

Start a Project

Tell us what you're making. A few lines is plenty; we'll ask the rest on a call.

What do you need?
Rough budget (optional)

Or email projects@reacthive.dev