Text Animate
Text Animate splits a string into animated text segments.
Practical React example
Reveal a short heading or sentence with a chosen segmentation and motion treatment.
Before you copy and paste
Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/text-animate.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: motion.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Reveal a short heading or sentence with a chosen segmentation and motion treatment
// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';
import { TextAnimate } from "@/components/magicui/text-animate"
export function ComponentExample() {
return (
<TextAnimate animation="blurInUp" by="word">
Blur in by word
</TextAnimate>
);
}
Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.
Choose the as element for the page’s heading hierarchy and by for the intended visual cadence. Keep the unanimated wording available to readers.
Customization
- TextAnimateProps.children
- Required; string. The text content to animate
- TextAnimateProps.className
- Optional; string. The class name to be applied to the component
- TextAnimateProps.segmentClassName
- Optional; string. The class name to be applied to each segment
- TextAnimateProps.delay
- Optional; number. The delay before the animation starts
- TextAnimateProps.duration
- Optional; number. The duration of the animation
- TextAnimateProps.variants
- Optional; Variants. Custom motion variants for the animation
- TextAnimateProps.as
- Optional; MotionElementType. The element type to render
- TextAnimateProps.by
- Optional; AnimationType. How to split the text ("text", "word", "character")
- TextAnimateProps.startOnView
- Optional; boolean. Whether to start animation when component enters viewport
- TextAnimateProps.once
- Optional; boolean. Whether to animate only once
- TextAnimateProps.animation
- Optional; AnimationVariant. The animation preset to use
- TextAnimateProps.accessible
- Optional; boolean. Whether to enable accessibility features (default: true)
Integration notes
- Avoid character-by-character effects for long passages or required instructions.
- Check that segmentation does not create confusing screen-reader output or awkward line breaks.
Component source: Magic UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.