Morphing Text

Words melt into one another like ink in water.

no dependenciesMIT · free

Ombak, Waves, Motion, Flow

Installation

npx shadcn@latest add https://ombakui.com/r/morphing-text.json

Usage

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

<h1 className="text-7xl font-bold">
  <MorphingText words={["Ombak", "Waves", "Motion"]} />
</h1>

Props

PropTypeDefaultDescription
words*string[]–Words or short phrases to morph between.
asElementType"span"HTML tag to render.
holdnumber1.6Seconds a word stays readable.
morphnumber1Seconds the melt between two words takes.
classNamestring–