Morphing Text
Overlapping blur-morph between phrases, aligned for inline sentences; pauses on hover.
Try it: Hover the word to hold it.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/morphing-text.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/morphing-text. You can also copy the source into components/ui/morphing-text.tsx (view on GitHub).
Usage
import { MorphingText } from '@/components/ui/morphing-text'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
phrases | string[] | — | Phrases to cycle through. |
interval | number | 2200 | ms per phrase. |
align | 'start' | 'center' | 'start' | Alignment inside the reserved width. |
animateWidth | boolean | false | Spring the width to each phrase instead of reserving the longest. |
pauseOnHover | boolean | true | Hold the current phrase while hovered. |
Dependencies
motion
Related Text Animations components
- Typewriter
Types and deletes through phrases.
- Scramble Text
Characters decode from noise into place.
- Number Ticker
Counts to a value when scrolled into view with locale-aware grouping and tabular figures; re-animates from the current value when it changes.
- Momentum Caption
Caption briefly follows pointer velocity.
- Infinite Marquee
Seamless looping strip with masked edge fades; pauses on hover, focus or with an optional pause button. Wraps statically under reduced motion.
- Wordloom
Words weave out as threads and resolve the next.