Motion
Use semantic motion roles in components. Primitives are the source timing and easing scale.
Hover or focus a tile to play it. Click to copy its tokens.
Interaction
Hover, press, toggle, and color changes on controls.
Expand
Accordions, disclosures, and rows that open in place.
Overlay
Dropdowns, popovers, and tooltips. Exit faster than enter.
Modal
Modals and drawers.
Page
Route and large layout transitions.
Role tokens
Components use these pairs. Each role has a -duration and an -easing token. The tiles above are options to compare.
- --motion-interaction-*
- 120ms · out
- --motion-expand-*
- 240ms · in-out
- --motion-overlay-*
- 180ms · out
- --motion-overlay-exit-*
- 120ms · out
- --motion-modal-*
- 400ms · spring-soft
- --motion-modal-exit-*
- 180ms · out
- --motion-page-*
- 400ms · emphasized