Style
Motion
Motion answers something the visitor did, or shows that Dugout is working.
Every animation in Dugout
Sidebar slides open and closed
250ms. On a desktop it narrows to the rail. On a phone it slides over the page as the shade fades in.
Panel rises open and sinks closed
200ms, rising 6px. The Filter panel.
Tooltip fades up and back down
150ms, rising 4px. A stat's explanation.
Answer rises in
450ms, rising 12px.
The Milwaukee Brewers (MIL) and the Tampa Bay Rays (TB) are in the World Series, and the Brewers lead it 2–0.
Loading dots
A one second beat, each dot 150ms after the last.
Dugout is looking that up.
Ribbons
Live's ribbons follow the voices.
Chip lifts
150ms, lifting 1px on hover.
Timing tokens
| Token | Value | Used for |
|---|---|---|
--ds-duration-quick | 150ms | Tooltips and hover lifts. |
--ds-duration-pop | 200ms | Panels opening and closing. |
--ds-duration-slide | 250ms | Sidebars and drawers. |
--ds-duration-link | 250ms | A link's underline drawing in. |
--ds-duration-reveal | 450ms | A new answer appearing. |
--ds-duration-pulse | 1000ms | One beat of the loading dots and the loading shapes. |
--ds-ease-out | cubic-bezier(0.2, 0.7, 0.2, 1) | Anything arriving or leaving. |
--ds-ease-in-out | cubic-bezier(0.4, 0, 0.2, 1) | The pulse of the loading dots and the loading shapes. |
Rule. Anything that opens animates when it closes too. With reduced motion on, every animation stops and things appear in place.