sona-ui

Split Text

Text

About

Splits text into characters, words, or lines and reveals them with a staggered, optionally scroll-triggered animation.

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

Code

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

Usage.tsx

import SplitText from "@/components/ui/sona-split-text"

export default function SplitTextExample() {
  return (
    <SplitText
      variant="words"
      className="max-w-md text-center"
      animationProps={{ duration: 0.3, stagger: 0.1 }}
    >
      <h2 className="font-semibold text-4xl lg:text-5xl text-foreground">
        Text that reveals itself, one word at a time.
      </h2>
    </SplitText>
  );
}

Dependencies

More by sona-ui

View all
  • Stagger Text

    Stagger Text

    8
  • Dot Orbit Shader

    Dot Orbit Shader

  • Mesh Gradient Shader

    Mesh Gradient Shader

  • Image Trail

    Image Trail

  • Section Rail

    Section Rail

  • Activity Graph

    Activity Graph

  • Fluid Slider

    Fluid Slider

  • Lightbox

    Lightbox

More in Text

View all
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    15
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    135
  • Scroll Fill Headline

    Scroll Fill Headline

    67
  • Blur Reveal

    Blur Reveal

    401
  • Apple Hello Effect

    Apple Hello Effect

    692
  • Rainbow Text Effect

    Rainbow Text Effect

    61
  • Text Reveal

    Text Reveal

    31
  • NeonRGBTextEffect

    NeonRGBTextEffect

    156