Installnpx shadcn@latest add https://motion-lexicon.pages.dev/r/primitive-scale-in.json
- Purpose
- Establish overlays, badges, or compact states from a size close to their final form.
- Trigger
- Trigger on overlay opening, state confirmation, or compact object mounting, with origin near the trigger.
- Interruptibility
- Use the current scale as the next starting point when retriggered.
- Reduced motion
- Hold the final size and communicate appearance through an 80–120ms opacity change.
scale-inScale inAn appearing element expands from a reduced scale to its final dimensions, commonly while opacity rises.
pop-inPop inAn entrance crosses the final scale briefly, then settles back to create a compact spring-like accent.