Velora UI

Morphing Text

Blurs one phrase out as the next resolves in.

  • 0.9 KB gzipped
  • Zero dependencies
  • Reduced-motion safe
  • Base UI & Radix compatible
Open in v0

Preview

Animate, Measure, Ship

Installation

pnpm dlx shadcn@latest add https://velora.colorlib.com/r/morphing-text.json

Adds components/velora/morphing-text.tsx.

Props

PropTypeDefault
texts*string[]—
hold

Seconds each phrase is held at full clarity

number2
morph

Seconds spent blurring between phrases

number0.8
classNamestring—

Accessibility

Reduced motion
Only the first phrase is shown, statically, with no blur. With motion allowed, cycling pauses while the pointer is over the text, while focus is inside it, and while the tab is hidden.
Keyboard
Decorative — nothing to operate.
Screen readers
All phrases are exposed once, comma-separated, in an sr-only span; the morphing visual phrase is aria-hidden, so nothing is announced on change.