Cnippet

Text Morph

Pricing 1

About

Shared-layout character morphing between two strings — individual letters animate to their new positions with spring physics.

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

Code

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

Usage.tsx

"use client";

import { useEffect, useState } from "react";
import { TextMorph } from "@/components/ui/text-morph";

const plans = ["Starter", "Pro", "Enterprise"];

export default function TextMorphPricing() {
  const [index, setIndex] = useState(0);

  useEffect(() => {
    const id = setInterval(() => setIndex((i) => (i + 1) % plans.length), 2200);
    return () => clearInterval(id);
  }, []);

  return (
    <div className="flex min-h-50 items-center justify-center px-6">
      <div className="w-full max-w-xs rounded-xl border border-border bg-card p-6 text-center">
        <p className="mb-1 font-medium text-muted-foreground text-xs uppercase tracking-widest">
          Current plan
        </p>
        <TextMorph
          as="h3"
          className="font-bold text-3xl text-foreground"
          transition={{
            damping: 20,
            mass: 0.25,
            stiffness: 320,
            type: "spring",
          }}
        >
          {plans[index] ?? plans[0] ?? ""}
        </TextMorph>
        <p className="mt-3 text-muted-foreground text-sm">
          Upgrade or downgrade at any time.
        </p>
      </div>
    </div>
  );
}

Dependencies

More by Cnippet

View all
  • Team

    Team

    1.3K
  • Davincho Hero-1

    Davincho Hero-1

    683
  • Aero Hero-3

    Aero Hero-3

    558
  • Features

    Features

    510
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    487
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    465
  • Blogs

    Blogs

    396
  • Aero Hero-1

    Aero Hero-1

    356

More in Pricing

View all
  • Pricing Section

    Pricing Section

    582
  • Pricing Cards

    Pricing Cards

    31
  • Pricing Card

    Pricing Card

    535
  • Pricing Section

    Pricing Section

    173
  • pricing section

    pricing section

    158
  • Single Pricing Card

    Single Pricing Card

    795
  • Pricing

    Pricing

    125
  • Glowing Pricing Tiers

    Glowing Pricing Tiers

    45