About
Animated text that reveals its words or characters with a randomized fade-in effect.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Randomized Text to your project and fits it to your theme.
Code
How Randomized Text is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { RandomizedText } from "@/components/ui/randomized-text";
export default function RandomizedTextDemo() {
return (
<div className="flex min-h-[360px] w-full items-center justify-center bg-background px-10 py-12">
<div className="w-full max-w-xl">
<h2 className="mb-4 text-3xl font-semibold tracking-tight text-foreground">
<RandomizedText split="chars">Introducing Spell UI</RandomizedText>
</h2>
<p className="text-base leading-relaxed text-muted-foreground">
<RandomizedText split="words">
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Animi
architecto soluta modi facilis fugit possimus commodi! Ipsum
delectus unde repellendus.
</RandomizedText>
</p>
</div>
</div>
);
}
















