Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultUI componentsSplit-Flap Board
Staggered Line RevealBrowse all 182Bead Line Timeline
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Split-Flap Board

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap

Setup

npm i gsap

More like this

  • Counter
  • Stagger
  • 3D

Features.

  • A departures-style board of split-flap tiles that flips between boards you write as plain text
  • Each tile turns its own drum (digits, capitals or lower case) and riffles through two in-between characters before landing on its target
  • The top flap falls, the bottom flap lands and bounces back up with a shadow and a faint glint, in real 3D
  • In-between flaps run faster and the last one slows, so each tile reads as spinning, then stopping
  • Tiles ripple across the board: 0.015s apart along a row, rows 0.12s apart
  • Click the board, use the arrow buttons, or the keyboard: ← ↑ back; → ↓ Enter Space forward
  • Changing board mid-flip snaps every tile whole before the next flip starts
  • The board sizes itself to the longest line and the most lines across all boards
  • Screen readers hear each finished board through a polite live region
  • Respects prefers-reduced-motion: each flip plays at 20× speed
  • GSAP only

How to get it right.

Keep lines short and even

Every line is padded to the longest one, so one long line widens the whole board. Nine characters per line fits a desktop row of tiles comfortably; on phones the tiles shrink to 1.875em.

Mix letters and digits on purpose

Each character only travels round its own drum. A digit that becomes a letter starts from the blank on the letter drum and runs forward from there, so mixed lines still flip, but the riffle is most convincing when each column keeps the same kind of character across boards.

Leave the bounce in

The bounce and glint are what make it feel mechanical. Drop data-au-bounce for a dry, modern board, but don't go far past 45° or the flap looks loose.

Variations.

  • Default — 0.36s last flap, 32° bounce
  • Fast board — data-au-flap-time="0.2" for short, snappy updates
  • Heavy flaps — data-au-flap-time="0.6" data-au-bounce="20": slow and weighty
  • No bounce — data-au-bounce="0": flaps land dead
  • Your colours — override --spf-bg, --spf-tile, --spf-glyph, --spf-edge, --spf-shade and --spf-glint on the board
  • Your size — override --spf-tile-w, --spf-tile-h, --spf-glyph-size and the gaps

Where it fits.

  • Travel and events — departures, line-ups, schedules
  • Launch pages — product names or dates flipping into place
  • Portfolios — one board per project: name, year, client
  • Stats — a small board of numbers that updates on click

Frequently asked.

One element per board with data-spf-set, lines split by |: data-spf-set="Halley|76 years|2061". The first one shows on load.

Not built in. Clicking the grid steps it, so setInterval(() => grid.click(), 4000) on the [data-spf-grid] element moves it every 4 seconds.

Anything. Digits, A–Z and a–z riffle through their drums; spaces show as blank tiles; punctuation and accented letters flip straight to themselves.

Yes. It ships without one. Add <p class="spf_label"> before the grid, or pass label in React.

Yes. They're optional. Clicking the board and the keyboard still work.

Related components.

Pro

Image Slide Tabs

Click

Pro

Glow Band Sheet Modal

Click

Pro

Expanding Card Modal

Click