Skip to content
Cook
Documentation Browse

Design

Motion

One loading animation, the hop. Controls move in 180ms on an ease-out curve. Reduced motion sets every duration to zero.

The hop

A 1.1s bounce that squashes on landing. The solid mark hops while something loads; the mono mark sits still when there is nothing to show.

Loading
No leads yet
<span className="animate-bob"><CookMark /></span>
@keyframes m-bob {
  0%, 100% { transform: translateY(0) scale(1, 1) }
  15%      { transform: translateY(0) scale(1.12, .88) }
  45%      { transform: translateY(-28%) scale(.96, 1.04) }
  75%      { transform: translateY(0) scale(1.1, .9) }
}

Control curve

Tabs, toggles and indicators move in --motion-control-duration: 180ms on cubic-bezier(0.23, 1, 0.32, 1).

.motion-control {
  transition-duration: var(--motion-control-duration);       /* 180ms */
  transition-timing-function: var(--motion-control-ease);    /* cubic-bezier(0.23, 1, 0.32, 1) */
}

Panel curve

The side panel opens slower than it closes.

TokenValue
--panel-open-duration280ms
--panel-close-duration200ms
--panel-view-duration220ms
--panel-easecubic-bezier(0.32, 0.72, 0, 1)

With reduced motion turned on, every one of these durations is zero.