ZeroGravity UI

Typographystable

SplitFlap

An airport board that flips one character at a time: text, clock or countdown.

Customize

Contentwhat the board shows
value
mode
10length
Motionflip speed and cascade
55 msstepDuration
45 msstagger
Lookcell size and colours
44 pxcharWidth
64 pxcharHeight
34 pxfontSize
4 pxgap
6 pxradius
color
background

Usage

TSX
import { SplitFlap } from "zerogravity"

<SplitFlap />

Generated from the controls above. Only props that differ from their defaults are shown.

Props

13 documented props on SplitFlap
PropertyTypeDefaultDescription
valuestring"DEPARTURES"Value.
mode"text" | "clock" | "countdown""text"Mode.
lengthnumber10Cells. Range 1 to 16.
stepDurationnumber55Step. Range 20 to 220 ms.
staggernumber45Stagger per cell. Range 0 to 220 ms.
charWidthnumber44Cell width. Range 20 to 110 px.
charHeightnumber64Cell height. Range 30 to 160 px.
fontSizenumber34Font size. Range 12 to 90 px.
gapnumber4Gap. Range 0 to 20 px.
radiusnumber6Corner radius. Range 0 to 20 px.
colorstring"#f5f5f7"Text colour.
backgroundstring"#141419"Cell colour.
targetDate | number—Deadline for countdown mode.

Dependencies

0 external runtime dependencies

Ships with nothing but React.