Skip to content

Split Text

A staggered character reveal as text enters the viewport.

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 SplitText from "./SplitText";
export default function Example() {
return (
<SplitText
text={"Make a move."}
delay={35}
duration={650}
distance={24}
color={"#c5bbef"}
/>
);
}

Using Split Text

Use as to choose the semantic element that fits the page, such as a heading or paragraph. Pass the copy through text.

delay controls the spacing between character starts, while duration controls each reveal. Use a modest distance to keep the entrance readable.

Props

NameTypeRequiredDefaultDescription
textstringNo""Your text
asstringNo"span"HTML element used for the text wrapper.
delaynumberNo35Character delay
durationnumberNo650Reveal duration
distancenumberNo24Travel distance
colorstringNo"inherit"Text color
classNamestringNo""Additional CSS class names, merged with base component styles.
styleCSSPropertiesNoundefinedInline styles for caller-defined sizing and visual overrides.

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.