fetaUI
GitHub

Split Flap Text

An airport board: each cell flips through the alphabet until it lands.

FreeWeb and MobileMotion

Preview

npx shadcn add @fetaui/split-flap-text
Playground
Split Flap Textnow boarding
Now boarding
Split Flap Textnow boarding
Gate 12
Split Flap Textgate 12
On time
Split Flap Texton time
Last call
Split Flap Textlast call
Style
Icons animation
Motion

Installation

Terminal· bash
 npx shadcn add @fetaui/split-flap-text

Accessibility

  • Read as one image labelled with the text.

Motion

  • Each cell flips every 70 ms, staggered left to right.
  • With reduced motion, the word appears.

Responsive behavior

  • Cells shrink to fit a phone.

Performance

  • One interval flips the cells every 70 ms, then stops when every cell lands.
  • When motion is off, the text is set at once.

Note for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Import SplitFlapText. Props: text, cells, styleKind, animated.
  • Use uppercase letters, digits and spaces. text is cut or padded to cells, 12 by default.
  • The demo cycles words with its own interval. Change text to flip the board.

Related