Installnpx shadcn@latest add https://motion-lexicon.pages.dev/r/primitive-anticipation.json
- Purpose
- Use opposite-direction anticipation, follow-through settling, and measured deformation to express direction, weight, and flexibility.
- Trigger
- Trigger from user-initiated movement, throwing, or state changes, with anticipation opposite the main travel.
- Interruptibility
- Cancel remaining phases on interruption and retarget from current position and velocity.
- Reduced motion
- Remove wind-up, overshoot, and deformation, moving directly to the stable target or using a short fade.
anticipationAnticipationA brief preparatory movement establishes direction and energy before the primary action.
follow-throughFollow-throughSecondary parts continue and settle after the main body reaches its destination, reinforcing weight and flexibility.
squash-and-stretchSquash & stretchTemporary deformation links shape to force, speed, or impact while preserving recognizable volume.