Morphing Text

Motion

A React headline that cycles through phrases by blurring one into the next on two stacked layers, pauses off screen and shows the first phrase for reduced motion.

src/registry/premium/morphing-text.tsx/r/morphing-text.json

Installation#

bash
npx shadcn@latest add @minidev/morphing-text

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/morphing-text.json

Usage#

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

export function Example() {
  return <MorphingText />
}

API reference#

MorphingText props
PropTypeDefault
wordsstring[]["Invoices that close themselves", "R...
intervalnumber2600
durationnumber1
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files
All Animated React components