transitions
Installation
SKILL.md
If .ux-profile.md exists at the project root, read it before changing overlay or list motion. Pair with surfaces for which surface type to use, and motion for duration/easing tokens.
Intent
Enter and exit should reinforce the surface model: slide-overs slide, popovers fade/scale lightly, routes swap without fighting focus. Motion must never steal Escape, trap focus incorrectly, or shove surrounding layout.
Hard Rules (Non-Negotiable)
- Overlay enter/exit matches
surfaces: slide-over uses horizontal translate; popover uses opacity (± slight scale ≤1.02); full-page routes do not fake a modal slide unless the surface skill chose a drawer. - Esc and focus stay available during motion. Exit animation can cancel; never block Escape until the animation finishes. Focus trap rules from
keyboardstill apply while the overlay is open. - List stagger ≤30ms per item, total stagger budget ≈200ms. Longer cascades feel theatrical and slow.
- Reserve space so open/close does not shift siblings (fixed drawer width, absolute overlay, or reserved inline-edit height). Zero layout jump — same spirit as inline edit in
surfaces.