terra vidhal

Morphing Text

Component

About

Text whose letters glide and blur into place whenever the string changes.

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

Code

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

Usage.tsx

"use client";

/**
 * PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
 */

import { MorphingText } from "@/components/ui/morphing-text";

const WORDS = ["Design", "Animate", "Morph", "Ship"];

export default function MorphingTextDemo() {
  return (
    <main className="flex min-h-screen w-full items-center justify-center bg-background px-6">
      <h1 className="flex w-full items-center justify-center">
        <MorphingText
          text={WORDS}
          loop
          holdDelay={1700}
          className="text-6xl font-semibold tracking-tight text-foreground sm:text-8xl md:text-9xl"
        />
      </h1>
    </main>
  );
}

Dependencies

More by terra vidhal

View all
  • Topographic Lines

    Topographic Lines

    4
  • Gravity Stars Background

    Gravity Stars Background

    4
  • Spotlight Card

    Spotlight Card

    3
  • Marquee

    Marquee

    2
  • Firework Burst

    Firework Burst

    1
  • Aurora Bubbles

    Aurora Bubbles

    1
  • Glyph Field

    Glyph Field

  • Shimmering Text

    Shimmering Text

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.