Idle tile
The tile at rest in the grid.
Time is a token. Easing is a token. The loader, the cursor, and the page transition are part of the brand.
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.
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 token | Seconds | Easing | Sample | Play |
|---|---|---|---|---|
| fast | 0.4 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| base | 0.6 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| slow | 0.8 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| long | 1.2 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| crossfade | 0.4 | power2.out · 0.215, 0.61, 0.355, 1 | ||
| expand | 0.8 | expo.inOut · 0.87, 0, 0.13, 1 | ||
| fadeOthers | 0.4 | power2.in · 0.55, 0.085, 0.68, 0.53 | ||
| settle | 0.55 | expo.out · 0.19, 1, 0.22, 1 | ||
| layerFade | 0.4 | power2.out · 0.215, 0.61, 0.355, 1 | ||
| reduced | 0.2 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| reveal | 0.6 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| stagger | 0.06 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| sideNav | 0.32 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| directLoad | 0.6 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| idleHold | 6 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| idleFade | 1.2 | sine.inOut · 0.445, 0.05, 0.55, 0.95 | ||
| idleOffset | 0.8 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| gradientLoop | 12 | sine.inOut · 0.445, 0.05, 0.55, 0.95 | ||
| themeChange | 0.6 | linear · 0, 0, 1, 1 | ||
| cursorSize | 0.3 | linear · 0, 0, 1, 1 | ||
| cursorFollow | 0.3 | power3.out · 0.165, 0.84, 0.44, 1 | ||
| rowInvert | 0.55 | rowInvert · 0.7, 0, 0.2, 1 | ||
| underline | 0.6 | brand · 0.2, 0.8, 0.2, 1 | ||
| cellPad | 0.4 | brand · 0.2, 0.8, 0.2, 1 | ||
| pill | 0.5 | linear · 0, 0, 1, 1 |
| crossfade | power2.out | cubic-bezier(0.215, 0.61, 0.355, 1) | |
| expand | expo.inOut | cubic-bezier(0.87, 0, 0.13, 1) | |
| settle | expo.out | cubic-bezier(0.19, 1, 0.22, 1) | |
| reveal | power3.out | cubic-bezier(0.165, 0.84, 0.44, 1) | |
| soft | power3.out | cubic-bezier(0.165, 0.84, 0.44, 1) | |
| inOut | expo.inOut | cubic-bezier(0.87, 0, 0.13, 1) | |
| out | expo.out | cubic-bezier(0.19, 1, 0.22, 1) | |
| sineInOut | sine.inOut | cubic-bezier(0.445, 0.05, 0.55, 0.95) | |
| brand | brand | cubic-bezier(0.2, 0.8, 0.2, 1) | |
| rowInvert | rowInvert | cubic-bezier(0.7, 0, 0.2, 1) | |
| power2In | power2.in | cubic-bezier(0.55, 0.085, 0.68, 0.53) | |
| power2InOut | power2.inOut | cubic-bezier(0.645, 0.045, 0.355, 1) | |
| power3InOut | power3.inOut | cubic-bezier(0.77, 0, 0.175, 1) | |
| linear | linear | cubic-bezier(0, 0, 1, 1) |
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.
mix-blend-mode: difference. Hidden on touch. Move over the target to feel it.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.
The tile at rest in the grid.
Overlay clip-path grows from the tile rect to inset(0). 0.8s expo.inOut.
The chapter title travels from the tile to the viewport center.
The chapter calls markPageReady, or 2500ms passes, plus 3 frames.
Overlay title interpolates onto #page-title. 0.55s expo.out.
Overlay fades 0.4s from settle − 0.15s. Focus moves to the title.
| Time (s) | Step |
|---|---|
| 0.3 | Draw the ring, strokeDashoffset 100 → 0, power2.inOut. Then a 0.6s pulse on the node. |
| 0.45–0.9 | Hold until fonts are ready (raced at 900ms) and a minimum of 450ms. |
| 0.12 | Wait, then slide the lockup from mark-centered to rest, 0.45s power3.out. |
| 0.32 / 0.025 | Letters of COSMORA fade and slide in, 0.32s, stagger 0.025, power3.out. |
| 0.12 | Hold. |
| 0.6 | Exit: lockup morphs to the header lockup, field slides up, expo.inOut. Hero reveals after 0.28s. |
| 0.64 | Cleanup: __cosmoraLoader = 0, remove loader-on, hide the loader. |
| 4.0 | Safety cap. If React never hydrates, the page still unlocks. |
Background and color cross over 0.6s. The WebGL fill and ink uniforms flip with the page. Current theme: dark.
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.
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.