Split Text Component

A customizable React component for splitting and animating text.

;
Live Preview
Experiment with the Split Text component using the controls below
OpenReactHub Split Text
Props
Detailed information about the component's props
PropTypeRequiredDefaultDescription
textstring
Yes
OpenReactHub Split TextThe text to split and animate.
classNamestring
No
''Additional CSS classes for styling the container.
delaynumber
No
0Initial delay (in milliseconds) before the animation starts.
speednumber
No
1Multiplier for the animation speed (higher = faster, lower = slower).
easing(t: number) => number
No
undefinedCustom easing function to control the animation curve.
direction'up' | 'down' | 'left' | 'right'
No
'up'The direction from which the animation starts.
pauseboolean
No
falsePauses or resumes the animation.
repeatnumber
No
1Number of times the animation should repeat. Use `0` for infinite repeats.
staggerDelaynumber
No
30Delay (in milliseconds) between animating each character.
loopboolean
No
falseEnables infinite animation looping (alternative to `repeat={0}`).
onComplete() => void
No
undefinedCallback function that fires when a single animation cycle completes.
highlightOnHoverboolean
No
trueAdds hover effects for each character.
animateByWordboolean
No
falseSplit text into either words or characters
hoverColorstring
No
'red'Specifies the color for hover effects (requires `highlightOnHover`).
Explore More Components
Discover other components available in OpenReactHub
Contribute
Learn how you can contribute to OpenReactHub