Foundations
Motion
Short, quiet movement that confirms what the user just did. Motion never decorates a page at rest.
Why we chose this
Motion is feedback, not decoration. It is fast (most things take 150ms), purposeful (it explains a change) and optional (everything has a reduced-motion version), because for some people movement causes dizziness.
Use it for
- Hover, press and focus feedback:
duration-fast - Menus, dialogs and panels entering or leaving:
duration-base(300ms) - Only
transform,opacity, color and shadow
Don't
- Invent a timing that isn't a token, or make it bouncy.
- Animate
width,heightortop. - Ship an animation without a reduced-motion version.
Durations
Easing
Easing is the speed curve of a movement. Our default is gentle: quick start, soft landing.
Where components use it
Hover any button above to see duration-fast and duration-slow working together: the button lifts in 150ms while the shine sweeps across in 600ms.
Which one to use
| What happens | Duration | Easing |
|---|---|---|
| Hover, press, focus: color, shadow, small lift | duration-fast 150ms | easing-standard |
| Menu, dialog or panel enters or leaves | duration-base 300ms (proposed) | easing-standard |
| One-off decorative sweep or shine | duration-slow 600ms | easing-standard |
| Ambient loop, like the live dot | duration-loop 1600ms | easing-loop |
Reduced motion
Some people turn on "reduce motion" in their system because movement causes dizziness or distraction. We must respect it. The rule: remove movement (sliding, scaling, shine, pulsing) but keep feedback, so a button still changes color on hover.
Your system setting right now:
| Normal | With reduced motion |
|---|---|
| Buttons lift, scale and shine | Only the color changes, with a linear 150ms fade |
| Checkbox, radio, chip and nav card animate | No transition |
| Live dot pulses | Static dot |
@media (prefers-reduced-motion: reduce) {
.cm-btn { transition: background-color var(--duration-fast) var(--easing-linear); }
.cm-dot--live { animation: none; }
}
Mobile and web
| Topic | Guidance |
|---|---|
| Hover | Touch screens have no hover. The :active (pressed) state is the feedback on mobile, so never hide information behind hover. |
| Durations | Same on both. Don't make mobile slower; short feels responsive on a phone. |
| Large movement | Avoid big parallax or full-screen motion on phones. It costs battery and can make people dizzy. |
| Native apps | Use the same durations. On iOS and Android also follow the system "reduce motion" setting. |
Rules
| Rule | Reason |
|---|---|
Use tokens: transition: background-color var(--duration-fast) var(--easing-standard). | Speed stays consistent and can change in one place. |
Animate transform, opacity, color and shadow. Avoid animating width, height or top. | Smoother and cheaper for the browser. |
| Nothing flashes more than 3 times a second. | Avoids seizure risk (WCAG). |
| Anything that loops can be stopped, or is tiny and decorative. | Constant movement is distracting. |
| Every new animation ships with a reduced-motion version. | No exceptions. |
Quick, subtle, and still readable with reduced motion.
.cm-btn {
transition: background-color var(--duration-fast)
var(--easing-standard);
}
@media (prefers-reduced-motion: reduce) {
.cm-btn {
transition: background-color var(--duration-fast)
var(--easing-linear);
}
}Long, bouncy, or invented timings that aren't tokens.
.cm-btn {
transition: all 0.8s cubic-bezier(.68, -.55, .27, 1.55);
}
.cm-btn:hover {
width: 220px;
}