TextNew

Split Flap Text

Letters flip like an airport departure board: each tile spins to its letter and drops on a real hinge.

Customize

textColor
edgeColor

Based on Split Flap Text (MIT license) · Terms of use

More in Pro

View all

Props

8 properties
PropertyTypeDefaultDescription
textstring—Show one text. If unset, the board cycles through words.
wordsstring[]"[\"NOW BOARDING\", \"GATE 12\", \"ON TIME\", \"LAST CALL\"]"Lines to cycle through. Letters A–Z, digits and : . - / & ! ?
intervalnumber3800How long one word stays, in milliseconds.
lengthnumber—Number of tiles. Defaults to the longest word.
tileClassNamestring—Classes for each tile, to recolor the board.
classNamestring—Classes for the wrapper.
textColorstring"#fafafa"Colour of the letters on the board.
edgeColorstring"rgba(255,255,255,0.1)"Colour of the thin edge round each tile.

Dependencies

2 required packages

npm install clsx tailwind-merge

Related components

View all