About
A line-by-line text reveal that wipes each line with a colored block using GSAP SplitText and ScrollTrigger.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Text Reveal Block to your project and fits it to your theme.
Code
How Text Reveal Block is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { TextRevealBlock } from "@/components/ui/text-reveal-block";
export default function TextRevealBlockDemo() {
return (
<div className="flex min-h-[320px] w-full items-center justify-center px-6 py-16">
<TextRevealBlock
as="h2"
text="Framed in shadow and light, every line arrives with deliberate tension."
className="mx-auto max-w-lg text-center font-semibold text-2xl leading-tight tracking-tight text-foreground"
animateOnScroll={false}
blockColor="#fe0100"
stagger={0.15}
duration={0.75}
delay={0.2}
direction="left"
/>
</div>
);
}















