Skip to content

Split Flap Text

Mechanical letter tiles flip in sequence as the message changes.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import SplitFlapText from "./SplitFlapText";
export default function Example() {
return (
<SplitFlapText
phrases={[
"CREATE",
"EXPLORE",
"REPEAT"
]}
interval={3000}
paused={false}
color={"#e8dfcf"}
background={"#302c26"}
duration={550}
stagger={70}
gap={5}
style={{
"fontSize": 54
}}
/>
);
}

Using Split Flap Text

Supply phrases to cycle between messages, or text for a single message updated by your application. Keep message lengths similar for a steadier footprint.

duration and stagger control the mechanical flip. interval sets the time between messages and paused stops the message cycle.

Props

NameTypeRequiredDefaultDescription
textstringNo""Text to show when phrases is empty. Updating this prop triggers the flip.
phrasesstring[]No[]Optional array of strings to rotate through. An empty array uses text.
intervalnumberNo3000Delay between messages in milliseconds. Zero stops automatic changes; a positive value is clamped to allow each flip to finish.
pausedbooleanNofalsePause automatic phrase changes. Explicit text updates still render.
colorstringNo"#ede5d7"Letter colour.
backgroundstringNo"#292622"Tile surface colour.
durationnumberNo550Individual split-flap flip duration in milliseconds.
staggernumberNo60Delay between adjacent tiles in milliseconds.
gapnumberNo5Gap between tiles in pixels.
classNamestringNo""Additional classes merged with the component styles.
styleCSSPropertiesNoundefinedInline styles for caller-defined sizing, typography, and appearance.

Related components

Reflection Text

Text Effects

Crisp typography meets a soft, fading reflection beneath the baseline.

Morphing Words

Text Effects

Words dissolve through a soft blur while the headline keeps its width.

Dot Matrix Text

Text Effects

Amber pinpoints form a crisp matrix display with a soft travelling pulse.

Scan Text

Text Effects

A warm scanning light brings a dim headline into focus.