About
Splits text into characters, words, or lines and reveals them with a staggered, optionally scroll-triggered animation.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Split Text to your project and fits it to your theme.
Code
How Split Text is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import SplitText from "@/components/ui/sona-split-text"
export default function SplitTextExample() {
return (
<SplitText
variant="words"
className="max-w-md text-center"
animationProps={{ duration: 0.3, stagger: 0.1 }}
>
<h2 className="font-semibold text-4xl lg:text-5xl text-foreground">
Text that reveals itself, one word at a time.
</h2>
</SplitText>
);
}
















