Typing Words

A typing headline that cycles words letter-by-letter with a 3D blur flip.

Hey, I am a

Typing Words cycles through a list of words letter by letter, but instead of a plain backspace wipe each character flips out with a blur and 3D rotation. The word list, cycle speed, and text styles are props. Built with Framer Motion and Tailwind CSS. A natural fit for hero headlines that rotate roles or features, such as "Build landing pages, dashboards, docs" with one word swapping at a time.

Installation

Usage

import { TypingWords } from "@/components/ui/typing-words";
<h1 className="text-5xl font-bold">
  Ship faster with{" "}
  <TypingWords
    words={["less code", "clean design", "pure motion", "zero config"]}
    startIndex={1}
    typingSpeed={70}
    deletingSpeed={35}
  />
</h1>

Props

PropTypeDefaultDescription
wordsstring[]—Words the headline cycles through.
startIndexnumber0Index of the word the cycle starts at.
typingSpeednumber50Time between each typed character, in ms.
deletingSpeednumbertypingSpeedTime between each deleted character, in ms.
pauseAtEndnumber1000How long the fully-typed word holds before deleting, in ms.
characterDurationnumber0.3Per-character reveal duration, in seconds.
classNamestring—Extra classes on the animated span.