animbits

Split Reveal Text

Text 10

About

Animated text that reveals with a vertical split effect, sliding each half in from the center on mount.

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

Code

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

Usage.tsx

"use client";
import * as React from "react";
import { TextSplitReveal } from "@/components/ui/text-split-reveal";

export default function TextSplitRevealDemo() {
  const [key, setKey] = React.useState(0);
  return (
    <div className="flex min-h-[360px] w-full flex-col items-center justify-center gap-8 bg-background px-6 py-16 text-foreground">
      <div key={key} className="flex flex-col items-center gap-3 text-center">
        <TextSplitReveal className="text-5xl font-bold tracking-tight sm:text-6xl">
          Split Reveal
        </TextSplitReveal>
        <TextSplitReveal delay={0.2} className="text-lg text-muted-foreground">
          Animated text that unfolds from the center.
        </TextSplitReveal>
      </div>
      <button
        onClick={() => setKey((k) => k + 1)}
        className="rounded-full border border-border px-5 py-2 text-sm font-medium transition-colors hover:bg-muted"
      >
        Replay
      </button>
    </div>
  );
}

Dependencies

More by animbits

View all
  • Dia Text

    Dia Text

    149
  • Gooey Blobs Loader

    Gooey Blobs Loader

    143
  • Linear Carousel

    Linear Carousel

    133
  • Skeleton Loader

    Skeleton Loader

    106
  • Word Carousel Text

    Word Carousel Text

    97
  • Image Text

    Image Text

    73
  • Text Highlight

    Text Highlight

    68
  • Morphing Loader

    Morphing Loader

    53

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