Installnpx shadcn@latest add https://motion-lexicon.pages.dev/r/primitive-text-morph.json
- Purpose
- Transition smoothly between similarly sized short text values and direct attention to the change.
- Trigger
- Trigger on value change and animate only the characters or phrase that changed.
- Interruptibility
- Coalesce rapid updates and settle only on the latest text.
- Reduced motion
- Replace the full text immediately and use static highlighting or one short fade to signal change.
text-morphText morphCharacters or glyph shapes transition between text states to focus attention on updated content.