Foundations · 05

Time is a token. Easing is a token. The loader, the cursor, and the page transition are part of the brand.

05 · 0

Motion at Cosmora is short, decisive and quiet. We do not bounce. We do not use springy overshoot on typography. We ease out of a move with power3 or expo, and we ease in and out of a structural change (a page expanding from a tile) with expo.inOut. If a person has asked the system for less motion, we listen.
05 · 1

Every duration and easing lives in lib/motion.ts. Press Play to run a square 120px along the exact curve and time. Loops longer than 3s are capped in the sample.

Duration tokenSecondsEasingSamplePlay
fast0.4power3.out · 0.165, 0.84, 0.44, 1
base0.6power3.out · 0.165, 0.84, 0.44, 1
slow0.8power3.out · 0.165, 0.84, 0.44, 1
long1.2power3.out · 0.165, 0.84, 0.44, 1
crossfade0.4power2.out · 0.215, 0.61, 0.355, 1
expand0.8expo.inOut · 0.87, 0, 0.13, 1
fadeOthers0.4power2.in · 0.55, 0.085, 0.68, 0.53
settle0.55expo.out · 0.19, 1, 0.22, 1
layerFade0.4power2.out · 0.215, 0.61, 0.355, 1
reduced0.2power3.out · 0.165, 0.84, 0.44, 1
reveal0.6power3.out · 0.165, 0.84, 0.44, 1
stagger0.06power3.out · 0.165, 0.84, 0.44, 1
sideNav0.32power3.out · 0.165, 0.84, 0.44, 1
directLoad0.6power3.out · 0.165, 0.84, 0.44, 1
idleHold6power3.out · 0.165, 0.84, 0.44, 1
idleFade1.2sine.inOut · 0.445, 0.05, 0.55, 0.95
idleOffset0.8power3.out · 0.165, 0.84, 0.44, 1
gradientLoop12sine.inOut · 0.445, 0.05, 0.55, 0.95
themeChange0.6linear · 0, 0, 1, 1
cursorSize0.3linear · 0, 0, 1, 1
cursorFollow0.3power3.out · 0.165, 0.84, 0.44, 1
rowInvert0.55rowInvert · 0.7, 0, 0.2, 1
underline0.6brand · 0.2, 0.8, 0.2, 1
cellPad0.4brand · 0.2, 0.8, 0.2, 1
pill0.5linear · 0, 0, 1, 1
Easing tokens
crossfadepower2.outcubic-bezier(0.215, 0.61, 0.355, 1)
expandexpo.inOutcubic-bezier(0.87, 0, 0.13, 1)
settleexpo.outcubic-bezier(0.19, 1, 0.22, 1)
revealpower3.outcubic-bezier(0.165, 0.84, 0.44, 1)
softpower3.outcubic-bezier(0.165, 0.84, 0.44, 1)
inOutexpo.inOutcubic-bezier(0.87, 0, 0.13, 1)
outexpo.outcubic-bezier(0.19, 1, 0.22, 1)
sineInOutsine.inOutcubic-bezier(0.445, 0.05, 0.55, 0.95)
brandbrandcubic-bezier(0.2, 0.8, 0.2, 1)
rowInvertrowInvertcubic-bezier(0.7, 0, 0.2, 1)
power2Inpower2.incubic-bezier(0.55, 0.085, 0.68, 0.53)
power2InOutpower2.inOutcubic-bezier(0.645, 0.045, 0.355, 1)
power3InOutpower3.inOutcubic-bezier(0.77, 0, 0.175, 1)
linearlinearcubic-bezier(0, 0, 1, 1)
05 · 2

Standard .reveal: opacity 0 → 1, y 24 → 0, 0.6s power3.out, stagger 0.06s. The transform is cleared after arrival so layout stays clean.

Eyebrow
Title
Lead
Action
05 · 3

stagger 0.060001020304050607
stagger 0.040001020304050607
05 · 4

Default 12px. Hover 56px. Follow smoothing 0.3s. mix-blend-mode: difference. Hidden on touch. Move over the target to feel it.
05 · 5

The signature interaction. Six frames: idle tile, clip expands, title centers, route is ready, title settles onto #page-title, overlay gone. Durations 0.8 / 0.55 / 0.4.

Idle tile

The tile at rest in the grid.

Clip expands

Overlay clip-path grows from the tile rect to inset(0). 0.8s expo.inOut.

Title centers

The chapter title travels from the tile to the viewport center.

Route is ready

The chapter calls markPageReady, or 2500ms passes, plus 3 frames.

Title settles

Overlay title interpolates onto #page-title. 0.55s expo.out.

Overlay gone

Overlay fades 0.4s from settle − 0.15s. Focus moves to the title.

05 · 6

Preview only · the real intro plays on every load of the index
Time (s)Step
0.3Draw the ring, strokeDashoffset 100 → 0, power2.inOut. Then a 0.6s pulse on the node.
0.45–0.9Hold until fonts are ready (raced at 900ms) and a minimum of 450ms.
0.12Wait, then slide the lockup from mark-centered to rest, 0.45s power3.out.
0.32 / 0.025Letters of COSMORA fade and slide in, 0.32s, stagger 0.025, power3.out.
0.12Hold.
0.6Exit: lockup morphs to the header lockup, field slides up, expo.inOut. Hero reveals after 0.28s.
0.64Cleanup: __cosmoraLoader = 0, remove loader-on, hide the loader.
4.0Safety cap. If React never hydrates, the page still unlocks.
05 · 7

Background and color cross over 0.6s. The WebGL fill and ink uniforms flip with the page. Current theme: dark.

05 · 8

Four durations carry almost everything we make. The rings turn with the page, so the panel is a clock that only runs while someone is reading it.

If a move needs a fifth duration, it is usually two moves. Compose from the four before adding a number to the token file.

05 · 9

  • Skip the intro choreography; fade the loader 0.3s after 0.5s.
  • Page transitions become 0.2s linear fades.
  • No parallax, no custom wheel lerp, no infinite loops, no letter stagger, no 3D morph.
  • Reveals may snap or use a short 0.2s opacity-only fade.
  • Auto-playing sound beds stay off; UI clicks may still play if sound is on, but keep them brief.
  • The WebGL scene also degrades on small screens, when hardwareConcurrency is 4 or less, or when WebGL2 is missing: a static CSS radial grey wash stands in.

Live state: prefers-reduced-motion is no-preference.

Do
  • Honor reduced motion.
  • Keep durations in tokens.
Don't
  • Introduce elastic springs, colored flashes, or loaders longer than the specified sequence.
  • Loop a marketing animation on a guidelines page without a pause control.