Skip to content

    Browse components

    Morph Text

    Cycles through words that melt into one another through a gooey blur-and-threshold crossfade.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/morph-text

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/morph-text.json

    Usage

    import { MorphText } from "@/components/ui/morph-text";
    
    <MorphText words={["Imagine", "Design", "Build", "Ship"]} />

    Props

    PropTypeDefaultDescription
    wordsstring[]["Imagine","Design","Prototype","Build","Ship"]Words to cycle through.
    durationnumber1100Morph duration, in ms.
    pausenumber1600How long each word rests, in ms.
    classNamestring—Extra classes for the root element.