soralabs

Text Reveal Block

Text 105

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>
  );
}

Dependencies

More by soralabs

View all
  • Scroll Gallery

    Scroll Gallery

    201
  • Dia Text Reveal

    Dia Text Reveal

    143
  • Dock Nav

    Dock Nav

    133
  • Pixelated Image Reveal

    Pixelated Image Reveal

    94
  • Text Roll

    Text Roll

    60
  • Custom Cursor

    Custom Cursor

    47
  • Section CTA

    Section CTA

    28
  • Text Reveal (Mask)

    Text Reveal (Mask)

    27

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Motion Blur Text

    Motion Blur Text

    36
  • Text Loop

    Text Loop

    310
  • Text Reveal

    Text Reveal

    27
  • Apple Hello Effect

    Apple Hello Effect

    610
  • Typography

    Typography

    4
  • Animated Text

    Animated Text

    8