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

    717
  • Aero Hero-3

    Aero Hero-3

    636
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    591
  • Features

    Features

    541
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    494
  • Blogs

    Blogs

    406
  • Aero Hero-1

    Aero Hero-1

    390

More in Text

View all
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    9
  • Apple Hello Effect

    Apple Hello Effect

    682
  • Scroll Fill Headline

    Scroll Fill Headline

    57
  • Shimmering Text

    Shimmering Text

    4
  • Blur Reveal

    Blur Reveal

    390
  • Toolbar

    Toolbar

    55
  • Liquid Text

    Liquid Text

    260
  • Motion Blur Text

    Motion Blur Text

    48