Installnpx shadcn@latest add https://motion-lexicon.pages.dev/r/primitive-origin-aware-animation.json
- Purpose
- Grow overlays or expanded content from their trigger so the motion source remains traceable.
- Trigger
- Trigger when a specific control opens content, deriving origin from trigger and overlay placement.
- Interruptibility
- Update origin smoothly if placement changes, and begin closing from current geometry.
- Reduced motion
- Preserve the static trigger-overlay relationship and replace scaling travel with a short fade.
origin-aware-animationOrigin-aware animationEntrance geometry begins at the control or location that triggered the new surface, preserving their spatial relationship.