Cnippet

Text Reveal

Text 41

About

Reveals text word-by-word, character-by-character, or line-by-line with smooth staggered entrance animations.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Text Reveal to your project and fits it to your theme.

Code

How Text Reveal is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { TextReveal } from "@/components/ui/text-reveal";

export default function TextRevealStacked() {
  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <div className="flex max-w-xl flex-col gap-3 text-center">
        <TextReveal
          as="span"
          className="font-medium text-muted-foreground text-sm uppercase tracking-widest"
          delay={0}
          per="word"
          preset="slide"
          speedReveal={1.5}
        >
          Introducing Cnippet Motion
        </TextReveal>
        <TextReveal
          as="h2"
          className="font-bold text-3xl text-foreground tracking-tight sm:text-4xl"
          delay={0.3}
          per="word"
          preset="fade-in-blur"
          speedReveal={1.2}
        >
          Animation primitives for modern React apps
        </TextReveal>
        <TextReveal
          as="p"
          className="text-base text-muted-foreground"
          delay={0.7}
          per="word"
          preset="fade"
          speedReveal={2}
        >
          Copy-paste components powered by Motion. No configuration required.
        </TextReveal>
      </div>
    </div>
  );
}

Dependencies

More by Cnippet

View all
  • Team

    Team

    1.4K
  • Davincho Hero-1

    Davincho Hero-1

    721
  • Aero Hero-3

    Aero Hero-3

    638
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    602
  • Features

    Features

    542
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    497
  • Blogs

    Blogs

    407
  • Aero Hero-1

    Aero Hero-1

    392

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    135
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    14
  • Scroll Fill Headline

    Scroll Fill Headline

    67
  • Blur Reveal

    Blur Reveal

    400
  • Apple Hello Effect

    Apple Hello Effect

    692
  • Rainbow Text Effect

    Rainbow Text Effect

    61
  • NeonRGBTextEffect

    NeonRGBTextEffect

    156
  • Vapour Text Effect

    Vapour Text Effect

    2.1K