klyv-ui

Morphing Text

Heroes 21

About

An accessible headline effect where one word blurs and morphs into the next using an SVG alpha-threshold filter, for a hero line that has more than one true ending.

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";

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

export default function MorphingTextDemo() {
  return (
    <div className="flex w-full items-center justify-center bg-background px-6 py-24">
      <div className="max-w-xl text-center">
        <h2 className="text-4xl font-semibold tracking-tight text-foreground sm:text-5xl">
          Interfaces that feel{" "}
          <MorphingText
            words={["fast", "accessible", "considered", "yours"]}
            className="text-primary"
          />
        </h2>
        <p className="mt-4 text-sm text-muted-foreground">
          A screen reader hears &ldquo;fast, accessible, considered,
          yours&rdquo; once, not a new word every two seconds.
        </p>
      </div>
    </div>
  );
}

Dependencies

More by klyv-ui

View all
  • Gantt Chart

    Gantt Chart

    63
  • Klyv Animated Beam

    Klyv Animated Beam

    50
  • Shader Canvas

    Shader Canvas

    49
  • Pareto Chart

    Pareto Chart

    44
  • Gooey Loader

    Gooey Loader

    26
  • Sunburst Chart

    Sunburst Chart

    24
  • Fluid Canvas

    Fluid Canvas

    23
  • Gravity Tags

    Gravity Tags

    20

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.5K
  • Hero

    Hero

    1.3K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    968
  • Editorial Collage Hero

    Editorial Collage Hero

    458
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    296
  • Glass Fold

    Glass Fold

    279
  • Aero Hero-3

    Aero Hero-3

    576