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, height or top.
  • 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 happensDurationEasing
Hover, press, focus: color, shadow, small liftduration-fast 150mseasing-standard
Menu, dialog or panel enters or leavesduration-base 300ms (proposed)easing-standard
One-off decorative sweep or shineduration-slow 600mseasing-standard
Ambient loop, like the live dotduration-loop 1600mseasing-loop
Live dot · duration-loop

Reduced motion

Why

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:

NormalWith reduced motion
Buttons lift, scale and shineOnly the color changes, with a linear 150ms fade
Checkbox, radio, chip and nav card animateNo transition
Live dot pulsesStatic 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

TopicGuidance
HoverTouch screens have no hover. The :active (pressed) state is the feedback on mobile, so never hide information behind hover.
DurationsSame on both. Don't make mobile slower; short feels responsive on a phone.
Large movementAvoid big parallax or full-screen motion on phones. It costs battery and can make people dizzy.
Native appsUse the same durations. On iOS and Android also follow the system "reduce motion" setting.

Rules

RuleReason
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.
Do

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);
  }
}
Don't

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;
}