A line-by-line text reveal that wipes each line with a colored block using GSAP SplitText and ScrollTrigger.
"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> ); }