deleted

Split Text

Text 31

About

Split text animation letter by letter

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/split-text"; 


const handleAnimationComplete = () => {
  console.log('All letters have animated!');

};

const DemoSplitText = () => {
  return (
    <div className="flex w-full h-screen justify-center items-center p-4"> {}
      {}
      <SplitText
        text="This text splits and animates letter by letter when it comes into view using react-spring."
        className="text-2xl md:text-3xl lg:text-4xl font-bold text-center max-w-2xl"
        delay={50}
        animationFrom={{ opacity: 0, transform: 'translate3d(0, 30px, 0)' }} 
        animationTo={{ opacity: 1, transform: 'translate3d(0, 0, 0)' }}
        easing="easeOutCubic"
        threshold={0.3} 
        rootMargin="-100px"
        onLetterAnimationComplete={handleAnimationComplete}
      />
    </div>
  );
};

export { DemoSplitText }; 

Dependencies

More by deleted

View all
  • Splash Cursor

    Splash Cursor

    1.3K
  • Star Border

    Star Border

    728
  • Tilted Scroll

    Tilted Scroll

    433
  • Waves Background

    Waves Background

    362
  • Squares Background

    Squares Background

    326
  • Prism

    Prism

    218
  • Grid Motion

    Grid Motion

    183
  • Circular Gallery

    Circular Gallery

    173

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Text Loop

    Text Loop

    306
  • Motion Blur Text

    Motion Blur Text

    36
  • Text Reveal

    Text Reveal

    27
  • Apple Hello Effect

    Apple Hello Effect

    608
  • Lightning Text

    Lightning Text

    122
  • ParticleTextEffect

    ParticleTextEffect

    2.1K