odysseyui

Typewriter

Text 4

About

An animated typewriter text effect that types and deletes multiple text sequences in sequence, with natural timing variance and auto-looping.

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

Code

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

Usage.tsx

import { Typewriter } from "@/components/ui/components-texts-typewriter";

type TypewriterDemoProps = {
  typingSpeed?: number;
  deleteSpeed?: number;
  pauseBeforeDelete?: number;
  loopDelay?: number;
  autoLoop?: boolean;
  naturalVariance?: boolean;
};

export default function TypewriterDemo({
  typingSpeed = 100,
  deleteSpeed = 40,
  pauseBeforeDelete = 1600,
  loopDelay = 1200,
  autoLoop = true,
  naturalVariance = true,
}: TypewriterDemoProps) {
  return (
    <div className="flex items-center justify-center p-10">
      <Typewriter
        key={`${typingSpeed}-${deleteSpeed}-${pauseBeforeDelete}-${loopDelay}-${autoLoop}-${naturalVariance}`}
        sequences={[
          { text: "Full-Stack Developer", deleteAfter: true },
          { text: "UI/UX Enthusiast", deleteAfter: true },
          { text: "Open to remote work", deleteAfter: false },
        ]}
        typingSpeed={typingSpeed}
        deleteSpeed={deleteSpeed}
        pauseBeforeDelete={pauseBeforeDelete}
        loopDelay={loopDelay}
        autoLoop={autoLoop}
        naturalVariance={naturalVariance}
        className="font-mono text-3xl tracking-tight text-foreground md:text-5xl"
      />
    </div>
  );
}

Dependencies

More by odysseyui

View all
  • AI Orb Avatar

    AI Orb Avatar

    190
  • Thought Chain

    Thought Chain

    88
  • Pricing 6

    Pricing 6

    46
  • Greeting Preloader

    Greeting Preloader

    24
  • Liquid Button

    Liquid Button

    23
  • GitHub Stars Button

    GitHub Stars Button

More in Text

View all
  • Motion Blur Text

    Motion Blur Text

    36
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • NeonRGBTextEffect

    NeonRGBTextEffect

    144
  • Text Reveal

    Text Reveal

    27
  • Random Letter Swap

    Random Letter Swap

    46
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Text Color

    Text Color

    545
  • Blur Reveal

    Blur Reveal

    300