Motion audit: product app (2026-11-02) #859

Open
opened 2026-11-02 13:13:26 +00:00 by kayg · 2 comments
Owner

Motion audit of the existing product app (apps/web, packages/ui, packages/editor on origin/dev 55f35fcd): every pointer, touch and hover interaction, whether it animates, duration and easing, and a verdict against kayg's binding animation rules. Verified in code and in Chromium (dev-01) and WebKit (dev-02) via Playwright. The table and the ranked fix list are in the comment below. No code was changed.

Motion audit of the existing product app (`apps/web`, `packages/ui`, `packages/editor` on origin/dev 55f35fcd): every pointer, touch and hover interaction, whether it animates, duration and easing, and a verdict against kayg's binding animation rules. Verified in code and in Chromium (dev-01) and WebKit (dev-02) via Playwright. The table and the ranked fix list are in the comment below. No code was changed.
Author
Owner

Motion audit: product app (origin/dev 55f35fcd, 2026-11-02)

Scope: apps/web, packages/ui, packages/editor as on origin/dev (what runs on prod). No code was changed.

How it was checked

  • Code: every transition, animation, @keyframes, .animate(...), Svelte in:/out: and spring in the three packages was read. File:line below is from origin/dev.
  • Browser: a throwaway Playwright probe (not in the repo) fired each interaction and recorded every CSS transition, CSS animation and Web Animation that started (target, duration, delay, easing, transform-origin). Runs: Chromium on dev-01 at 1440 and 390 px; WebKit on dev-02 at 1440 and 390 px (Playwright WebKit on aarch64 Linux, not real Safari). Touch swipes used CDP touch events (Chromium only).
  • Column "animates?" says C = seen in Chromium, W = seen in WebKit, code = read in code only (not triggered or not reachable in the probe).
  • Linux VMs have no GPU, so nothing here is a frame-rate measure. Durations are the browser's declared timings.
  • JS-driven springs (selector capsule, squish switch, toast capsule, block drag) draw by script, so the browser timing list does not show them; their numbers come from the code.

Rules used (kayg's binding set)

R1 press scale 0.97 · R2 never scale(0) · R3 instant subsequent tooltips · R4 custom ease-out (no plain ease, ease-out, ease-in, linear on UI motion) · R5 origin-aware · R6 nothing over 300 ms · R7 blur crossfades. Plus the TASTE rules: keyboard never animates, hover controls appear instantly, reduced motion keeps meaning without movement.

Two facts that explain many rows

  1. Every house spring settles at 416 to 556 ms, not the 260 to 380 ms the tokens say. tokens.css:247-256 names --spring-*-ms values (260/320/380/520/340), but installSprings() (packages/ui/src/lib/spring.ts:31-42) overwrites them with the time each curve takes to get within 0.1 % of its target. Measured in the browser: sheet/dock/--cl 556 ms, bar morph and glass 528 ms, sheet size 416 ms. Most of the move is done by ~60 %, but the declared time is what the rule counts, and what keeps the main thread/compositor busy.
  2. WebKit still animates the first key after a mouse action. In the WebKit run, Ctrl+\ (hide places) played the full 556 ms spring and Esc closing the Insert sheet played the 416 ms bar morph. Chromium played nothing for the same steps. keys-no-motion.spec.ts primes with an Esc key before the key under test (ready()), which would hide this. Needs a check on real Safari.

Verdicts: OK = fine as is (reason given) · GAP = should animate (or animate better) and does not · VIOLATION = breaks a binding rule.


1. Sidebar (places, tags)

Interaction Where Animates? Duration / easing Verdict Why
Hover place or tag row Sidebar.svelte:451-455 No (C, W: 0 anims) instant in and out OK TASTE: hover controls appear instantly. No fade-out (TASTE says "short fade out"), minor.
Press a place row Sidebar.svelte:449 No: scale 150ms is declared but no :active rule uses it n/a GAP (low) No press feedback on the most-used rows (R1 would be 0.97). Whole-row targets are big, so low priority.
Click place or tag (list changes) lib/motion.ts:14-26 arrive Yes (C): list rows rise 6 px and fade 260 ms, spring-snap curve OK Pointer only. ArrowDown/Enter in the list: 0 anims (C, W), which is correct.
Tags section fold / unfold Sidebar.svelte:295 ({#if !folded.tags}), chevron :369 Chevron yes (C, W); rows no (pop in and out) chevron rotate 180ms ease-out-quint GAP Chevron says "animated", the rows jump. "Never animate layout that moves text" argues against a height tween, so use a fade (+2 px blur) on the rows, not height. Same on the phone places page.
Hide / show places, click Shell.svelte:272, cm.css:34,105, editor.css:53, bar.css:28 Yes (C, W): grid columns, paper offset (--cl), editor padding-left, bar --cl 556 ms spring; side pane opacity 160 ms, visibility +220 ms VIOLATION R6 Big layout move and it is the pointer path, so it should animate, but at ≤300 ms.
Hide / show places, Ctrl+\ Shell.svelte .instant class C: none. W: yes, 7 anims at 556 ms (hide) n/a OK in C, VIOLATION in W Keyboard never animates (TASTE #344). See "WebKit still animates the first key".
Drawer for places (narrow window) Shell.svelte:87-107, 213-214 Yes (code): slide + clip in, scrim fade in 320 ms custom spring / out 180 ms t*t (ease-in) VIOLATION R6, R4 320 over the limit; the exit curve is an ease-in. Origin is correct (grows from the left edge).
Drag-reorder or merge a tag Sidebar.svelte:410-432, lib/motion.ts:93-116 Yes (C, W): neighbours glide, FLIP, lifted row scale 1.02 glide 200 ms ease-out-quint; FLIP 320 ms spring VIOLATION R6 (small) Pointer drag, so motion is right; trim FLIP to ≤300.
Resize panes (drag the divider) Shell.svelte:118-140, .resizing No (C, W: 0 anims) follows pointer 1:1 OK Direct manipulation: the thing under the finger must not lag. .resizing switches transitions off.

2. Note list

Interaction Where Animates? Duration / easing Verdict Why
Hover note row RowActions.svelte, NoteList.svelte No (C, W) instant OK Hover rule: instant.
Press note row no :active rule No (C, W) n/a GAP (low) Same as sidebar rows.
Click row, desktop (list → note) lib/motion.ts:83-90 fadeIn → swapTabs:49-53 Yes (C, W): .cm-host opacity only 140 ms plain ease-out, no blur, no movement VIOLATION R4, R7 (minor) Only the words fade; nothing ties the row to the note.
Shared-title flight row → note styles/editor.css:389-396 No: dead CSS. No startViewTransition anywhere in src would be 420 ms GAP ::view-transition-group(note-title) is styled but never triggered. Either build it (≤300 ms) or delete the CSS.
↑/↓ and Enter through the list list key handlers No (C, W: 0 anims) n/a OK Frequent keyboard action: must not animate (Emil Kowalski / TASTE).
New note shows up at the top NoteList.svelte:317,522 row-in Yes (code): rise 6 px + fade 320 ms ease-out-quint VIOLATION R6 (small)
Rows re-order (note edited, deleted) lib/motion.ts:93-116 FLIP Yes (C, W: li waapi) 320 ms spring VIOLATION R6 (small)
Rows ⇄ gallery cards lib/motion.ts:119-141 morphLayout Yes (code; control not found by probe) 460 ms spring VIOLATION R6 In-place morph is right (TASTE), duration is not.
⌘/Ctrl-click row → select mode, BulkBar rows/BulkBar.svelte:82-100 Yes (C, W): bar slides up; buttons fade translate 260ms ease-out-quint; opacity 140 ms OK Pointer path, ≤300, custom curve.
Tick a row in select mode rows/RowActions.svelte:128 No instant OK Comment in code: picking happens tens of times a day.
Esc leaves select mode BulkBar.svelte:100 .instant No (C, W) n/a OK Keyboard.
BulkBar button press BulkBar.svelte:137-139 Yes (code) scale 0.97, 160 ms OK Matches R1.
Right-click or ⋯ → context menu opens packages/ui/.../ContextMenu.svelte:44-56 Yes (C, W): menu scale 0.96→1, glass fade, rows fade + 3 px blur 200 ms spring; 140 ms ease-out-quint OK Origin = pointer or the ⋯ (pos.origin), blur on rows, glass not faded (backdrop-filter safe).
Context menu closes (click away) ContextMenu.svelte:183-195 Yes (code): scale 0.98 + fade 100 ms OK Exit faster than enter.
Context menu opened or closed by key (Shift+F10, Esc) ContextMenu.svelte:44-46,184 No (C, W: 0 menu anims) n/a OK Keyboard never animates.
Hover menu item ContextMenu.svelte No (C, W) instant OK
Swipe a row (finger drag, release) rows/swipe-row.ts:174-200, swipe-math.ts Yes (C-390): drag follows 1:1; release spring from finger speed release 280 to 432 ms spring VIOLATION R6 (long swipe, 432 ms); otherwise OK Interruptible spring that keeps velocity is the right design. Button pop on threshold is 260 ms cubic-bezier(.3,0,.2,1), fine.
Two-finger sideways scroll on desktop same Yes (C, W) 260 ms spring OK
Swipe action button press RowActions.svelte:236-238 Yes (code) scale 0.94 VIOLATION R1
Row action buttons fade in RowActions.svelte:207-214 Yes (code) 120 to 160 ms ease-out-quint; off while swiping OK
Focus the Filter field list search / bar Yes (C, W): bar morph width 528 ms spring + layer fade 100/180 ms VIOLATION R6 See Bar morph.

3. Bottom bar, sheets, palette, tooltips, toasts

Interaction Where Animates? Duration / easing Verdict Why
Bar morph (rest ⇄ text bar ⇄ filter ⇄ composer) packages/ui/.../Morph.svelte:96-112,186-221, styles/bar.css:28,42 Yes (C, W): capsule width/height spring, glass bg, layers swap size 528 ms; old layer out 100 ms, new in 180 ms + 3 px rise; no blur VIOLATION R6; GAP R7 In-place morph is what TASTE wants. Duration is over, and the plain bar⇄bar swap has no blur (the sheet swap does).
Bar swap from the keyboard Morph.svelte:99-112, base.css:255-263 C: none. W: yes (Esc closing Insert: width/height 416 ms) n/a OK in C, VIOLATION in W Keyboard never animates.
Hover bar icon button styles/chrome.css:84-105 Yes (C, W) bg/colour 150 ms ease-out-quint OK
Press bar icon button chrome.css:96-98 .ib:active Yes (C, W) scale 0.96, 150 ms VIOLATION R1 Same 0.96 on .seg button (chrome.css:148-150).
Press bar tab / pill (.press) styles/base.css:213-221 Yes (C, W) scale 0.97, 150 ms OK The reference implementation of R1.
Insert / Style / Note info sheet opens (bar grows into a sheet) Morph.svelte:96-110,194-196 Yes (C, W) size 416 ms (--spring-style), glass bg 528 ms; layers out 60 ms, in 170 ms with 4 px blur VIOLATION R6; R7 OK Blur crossfade and in-place growth are right. Plain content swaps skip the blur on purpose (full-layer filter cost, #469).
Sheet closes (click outside) same Yes (C, W) 416 ms size VIOLATION R6
Focus mode on (click) Shell.svelte:458-482 Yes (C, W) panes fade 160 ms + slide 220 ms ease-out-quint; paper re-centres on 556 ms spring VIOLATION R6 (paper only)
Focus mode on/off (Ctrl+.) Shell.svelte .instant No (C, W) n/a OK Keyboard.
Date label click ("Today" ⇄ exact date, text morph) packages/ui/src/components/FlipLabel.svelte:35 (torph TextMorph) Yes (C): 3 span animations 420 ms cubic-bezier(.19,1,.22,1) + 210 ms + 105 ms VIOLATION R6 Also: in the Chromium run the same 3 span animations showed up in every later probe window. Worth checking the label is not re-morphing on a timer.
Palette opens (click) components/Palette.svelte:47-65 Yes (code) search pill → panel FLIP, 340 ms cubic-bezier(.34,1.3,.64,1); content fade 140 ms +90 VIOLATION R6 (small) Origin-aware (grows from the pill). Falls back to 260 ms rise + scale 0.96.
Palette opens by Ctrl+K Palette.svelte:49 No (C, W: no palette anims) n/a OK Keyboard.
Palette closes (click scrim, Esc) Palette.svelte No (C, W) instant GAP (low) for the click path Pointer close has no exit; Esc is fine.
Palette results change / type composer/LineMorph.svelte:41-75, ComposerBody.svelte:567 Yes (C, W) labels out 110 ms / in 260 ms (+60) with 2 px blur; list height 528 ms VIOLATION R6 (height) Blur crossfade on labels is correct.
Palette ↑/↓ through results ComposerBody.svelte C: none n/a OK Keyboard.
Tooltip, first (hover ≥400 ms) lib/tooltip.ts:27,185, chrome.css:3-18 Yes (C, W): opacity + scale 0.94→1 160 ms ease-out-quint; origin = trigger edge OK Origin-aware, ≤300, never scale(0). No blur (TASTE mentions a little).
Tooltip next to a warm one, mouse tooltip.ts:183 (show(..."instant")) No (C, W) 0 ms OK R3. Because pointerleave always closes the first tip, mouse moves are always "instant".
Tooltip next to a warm one, keyboard focus tooltip.ts:205 (open ? "travel"), chrome.css:67-72, tooltip.ts:108-123 Yes (code): tip glides and resizes, words slide 8 px with 3 px blur translate/width/height 528 ms spring; words 140/220 ms VIOLATION R3, R6, keyboard Subsequent tooltips must be instant, and this is a keyboard path. The base.css keyboard rule zeroes the CSS transition but not the script animation on the words (tooltip.ts:112-122). Easiest fix: always "instant" when warm.
Tooltip closes chrome.css:64-66 Yes (C, W) 100 ms OK
Tooltip by long-press (touch) tooltip.ts:198 Yes (code) 500 ms hold, 160 ms pop OK
Toast in the bar (letters, count roll) primitives/toast/ToastRow.svelte:69-72, Roll.svelte:19-25 Yes (C, W) letters 260 ms cubic-bezier(.2,.7,.2,1) +9 ms stagger; digit roll 260/200 ms OK Custom curves, ≤300.
Stand-alone toast capsule (no bar) toast/ToastCapsule.svelte:129-150,29-30 Yes (code) dot 180 ms cubic-bezier(.2,.9,.3,1.3); width spring response 0.42 s; words fade 160 ms plain ease-out VIOLATION R4, R6 Starts from scale 0.2 (not 0).
Toast list items move (sonner) toast/Toasts.svelte (sonner default CSS) Yes (C-390): opacity and transform on li, seen while a swipe-delete toast arrived 400 ms plain ease VIOLATION R4, R6 Library default is leaking through unstyled. Override in Toasts.svelte.
Toast Undo press ToastRow.svelte:139-141 Yes (code) scale 0.96 VIOLATION R1
Toast leaves sonner + Toasts.svelte:33-36 Replaced toasts: cut at once; timed-out: sonner default see above OK / VIOLATION as above Cut on replace is deliberate.

4. Phone navigation

Interaction Where Animates? Duration / easing Verdict Why
Tap list row → note (push) components/PhoneStack.svelte:295-318 Yes (C-390, W-390) translate 380 ms cubic-bezier(.32,.72,0,1) VIOLATION R6 Drawer curve is custom and right; 380 ms is over. Under-screen visibility switches at +380 ms.
Back pill (note → list → places) same, chrome/TopPills.svelte:367 Yes (C-390, W-390) screens 380 ms; pill width 240 ms, bg 200 ms VIOLATION R6
Edge-swipe back PhoneStack.svelte:303 .tracking .screen { transition: none } Yes (code) follows finger, then spring OK Direct manipulation; release spring keeps speed.
Back/forward pills appear TopPills.svelte:362,497-505 Yes (code) pill-in 320 ms spring-snap, scale 0.7→1 VIOLATION R6 (small) Never from 0.
Pill face swap (back ⇄ check, line ⇄ title) TopPills.svelte:375-484 Yes (code) opacity 180 + scale 220 + blur 2 px, ease-out-quint OK Blur crossfade is exactly R7.
Pill press TopPills.svelte:350-352 Yes (C-390) scale 0.97 OK
Header title swaps while the note scrolls (scroll-linked) TopPills.svelte:160-176, chrome/header/title.ts, headings.ts Yes (code) words move ±14 px on the morph spring; in 100 ms ease-out, out 160 ms cubic-bezier(.4,0,1,1) VIOLATION R4, R6; GAP R7 Exit is an ease-in, spring is ~528 ms, no blur on the swap. Observer-driven (no scroll handler), which is good.
Tap the pill to jump to a heading TopPills.svelte:186-189 Yes (code): scrollTo({behavior:"smooth"}), instant on reduced motion browser's own smooth scroll OK Duration/curve are not ours to tune; acceptable.
Foot tabs (Notes ⇄ Settings thumb) chrome/PhoneFoot.svelte:175-191 Yes (code; role=tab not found by probe) thumb translate 528 ms spring; colour 160 ms VIOLATION R6
Search / New dock leaves and returns chrome/ListDock.svelte:52-65 Yes (C-390): translate 556 ms spring VIOLATION R6
Press Search pill TopPills/ListDock .field Yes (C-390) bg + scale 150 ms OK
Phone: tap row, press (hold) no :active No n/a GAP (low)

5. Editor

Interaction Where Animates? Duration / easing Verdict Why
Hover a line → margin controls (drag handle, ⌘ pill) styles/editor.css:297-319 Appear: no (C, W). Fade out yes in 0 ms, out 120 ms ease-out-quint OK Exactly TASTE: instant in, short fade out.
Controls glide to the next line editor.css:314 Yes (code) 140 ms ease-out-quint OK Skipped on keyboard/reduced motion.
Block handle hover cm.css:549, tooltip tooltip only 160 ms OK
Block handle press editor.css:331, cm.css:549 No (cursor: grabbing only) n/a GAP (low) No press scale (R1); drag lift covers it once moving.
Drag a block packages/editor/src/blocks/follow.ts, picked.ts:271; editor.css:355-384 Yes (code): spring-follow (rAF), drop line glides, target tint drop line translate/left 120 ms; ring cm-ring-in 250 ms plain ease-out VIOLATION R4 (ring only) The rest is custom and short.
Tick a task (click) styles/cm.css:305-333,349-360,411-418, primitives/check/SpringCheckBox.svelte:82-132 Yes (C, W) box press scale 0.86 90 ms; fill scale 0→1 500 ms spring; tick stroke 260 ms (+70); box-shadow 150 ms ease-out; row colour/strike 500 ms + 120 ms delay ease-out VIOLATION R1, R2, R4, R6 The squeeze is 0.86 not 0.97, the fill starts at scale: 0 (cm.css:324, SpringCheckBox.svelte:110), plain keywords on box-shadow/stroke/colour, total 620 ms. Fix: fill from scale 0.6 + opacity, press 0.97, springs ≤300.
Untick a task same Yes (C, W) tick 120 ms ease-in, fill 500 ms VIOLATION R4, R6
Tick by key (Ctrl+Enter) .cm-task-instant, strike.ts:25 No (C, W: only the bar swap from the preceding click) n/a OK Keyboard never animates.
Tree guide lights up on hover packages/ui/src/styles/tree.css:73-83 Yes (C, W) --tree-lit 160 ms in / 240 ms; bullets 160/240 ms, ease-out-quint OK Fine, hover-only, off for keyboard, touch and reduced motion.
Nest a line with the pointer tree.css:149-181 tree-grow Yes (code) 420 ms ease-out-quint, clip-path, tiny overshoot VIOLATION R6 Tab nesting: none (C, W), correct.
Tag chip hover cm.css:628,683 Yes (code; chip not hit by probe at 1440) bg 140 ms ease-out-quint OK
Tag chip × appears on hover cm.css:668-676 Yes (C-390) opacity 120 ms; scale 0.6→1 220 ms cubic-bezier(.34,1.56,.64,1) OK Custom overshoot curve, not from 0, origin is the chip corner.
Tag chip / + press cm.css:706-708 Yes (code) scale 0.96 VIOLATION R1
Tag picker opens components/TagPicker.svelte:77-91 Yes (C) 220 ms overshoot spring, scale 0.9→1, transform-origin from pos.origin OK Origin-aware. Closes instantly (no out:): GAP (low) for pointer closes.
Link hover styles/links.css:161-170 Yes (code) 140 ms ease-out-quint OK
Link preview card components/LinkCard.svelte:85-86 Yes (code; link did not resolve in the probe) scale 0.86→1 460 ms cubic-bezier(.34,1.4,.64,1) VIOLATION R6 Keyboard skips it (!now.keyboard).
Link card button press LinkCard.svelte:289-291 Yes (code) scale 0.97 OK
Turn a line into a note / delete lines lib/editing.svelte.ts:616-643 Yes (code) lines fly 320 ms (+22 ms stagger) cubic-bezier(.77,0,.175,1), head pulse 260 ms plain ease-out, 4 px blur VIOLATION R4, R6 Ease-in-out is the wrong shape for something leaving; blur is right.
Block morphs into its new form editor.css:265-285 morph-in Yes (code) 420 ms ease-out-quint, blur 4 px→0 VIOLATION R6 Blur crossfade OK.
"Jump to" flash editor.css:271,283 Yes (code) 1.2 s ease-out-quint VIOLATION R6 (strict) A highlight pulse, not movement; shorten or accept as an exception.
Paper width Narrow / Wide / Full lib/paper.ts:123-135, cm.css:105-124 Yes (code) springs 528/556 ms VIOLATION R6 Skipped when only one side floats.
Source mode / Show markdown toggle bar button No (C, W: 0 anims) n/a OK Instant text swap; frequent.
Caret blink CodeMirror Yes (endless) cm-blink 1.2 s OK Text cursor, not UI motion. Vim caret respects reduced motion (vim/caret.ts:34).

6. Settings

Interaction Where Animates? Duration / easing Verdict Why
Notes ⇄ Settings (tab, click) lib/motion.ts:36-53 swapTabs Yes (C, W): everything that is not glass fades in opacity only, 140 ms plain ease-out, no blur VIOLATION R4; GAP R7 Glass deliberately never fades (#287), so a blur crossfade is hard here. Curve should be the house one.
Notes ⇄ Settings (Ctrl+,) swapTabs:49 No (C, W) n/a OK Keyboard.
Settings page nav row Settings.svelte Yes (C, W): .inner 260 ms spring OK
Selector capsule (click) primitives/selector/Selector.svelte:58-110,260-299 Yes (code; JS springs, leading edge then trailing) spring response 0.3 s, no bounce; label colour 250 ms plain ease-out VIOLATION R4 The stretch-and-catch capsule is the TASTE reference.
Selector (arrow keys) Selector.svelte:161 No (C: 0 anims) n/a OK
Selector option press Selector.svelte:344-346 Yes (code) scale 0.96 VIOLATION R1
Squish switch (click) primitives/switch/SquishSwitch.svelte:215, physics.ts:10-12 Yes (C): thumb spring (script), scale 180 ms and track colour 320 ms plain ease-out response 0.34 s / 0.32 s VIOLATION R4, R6 (320)
Squish switch (Space) SquishSwitch.svelte No (C: 0 anims) n/a OK
Accent colour dot: hover, press, select Settings.svelte:708-742 Yes (C) ring 160 ms, dot scale 0.92 on press, backdrop colour 380 ms, ping 1.4 s VIOLATION R1 (0.92), R6
Backdrop tile: hover, press, select components/appearance/BackdropGrid.svelte:165-170 Yes (C, W) ring 160 ms, scale 0.97 150 ms OK
Backdrop picture changes components/ArtStack.svelte:69-82, Backdrop.svelte:415,623-704 Yes (C) new art 300 ms fade (art-in), scale 240 ms; dim/edge layers 380 to 450 ms ease-drawer VIOLATION R6 (380/450); GAP R7 A full-screen picture crossfade with no blur bridge.
Copy link button components/settings/CopyLink.svelte:46-70,110-116 Yes (C): hover 200 ms; "copied" burst hover 200 ms ease-out-quint; copied 1.57 s linear (lib/copied.ts:69-90) VIOLATION R4, R6 Press scale 0.97 is right.
Appearance tick sliders open/close appearance/TickSlider.svelte:70-114,219-258 Yes (code) 160 to 280 ms; chevron 200 ms; drop 140 ms plain ease-out (:109) VIOLATION R4 (small) Off for keyboard and reduced motion.
Rows fade up inside a page appearance/PageRows.svelte:40, motion.ts:10 Yes (code) 200 ms, 4 px rise OK
Passkey list / install hint / backdrop picker PasskeySection.svelte:262, InstallHint.svelte:171, BackdropPicker.svelte:326,354 Yes (code) 160 / 260 / 120 ms ease-out-quint; skeleton pulse loops OK Ambient loops stop on reduced motion.

7. Trash, sign-in, background

Interaction Where Animates? Duration / easing Verdict Why
Open a trashed note (preview) components/TrashPreview.svelte:84,134,151,166-176 Yes (code) fade 200 ms; push 32 px; pill press scale 0.97 120 ms OK Trash was empty in the probe, so not triggered.
"Delete forever?" ask TrashList.svelte:283-295 Yes (code) 180 ms, scale 0.96→1 OK
Sign-in card and chunks components/SignIn.svelte:177-340 Yes (code) card 520 ms, fade 420 ms, chunks 260 to 300 ms; Go button press scale 0.96 (:274) VIOLATION R6, R1 Shown once per sign-in.
First paint of the app after sign-in Shell.svelte:561-575 arrive Yes (code) 520 ms ease-out-quint, 10 px rise VIOLATION R6
Backdrop follows page scroll (iOS toolbar fix) components/Backdrop.svelte:430-446 Yes: animation-timeline: scroll(root) linear, 1 ms (position only) OK Scroll-linked on purpose, compositor-run, no easing wanted.
Backdrop sky: stars, clouds Backdrop.svelte:506-590 Yes (endless) 4.2 s twinkle, 240/420 s drift OK Ambient; off on reduced motion.
Reduced motion base.css:247-253, per-component @media Handled almost everywhere short fades or none OK

Ranked fix list

Ordered by how many rows each one clears and how visible it is. Not done here; this task changed no code.

  1. Make every spring settle in ≤300 ms. One change in packages/ui/src/lib/spring.ts:31-42 (installSprings) plus its settle rule (:15-19, 0.1 % band; use a 2 % band or stiffer response). Clears the 556/528/416 ms rows: hide/show places, bar morph, sheets, dock, foot thumb, paper width, Focus paper, palette list height. Then align the literal numbers in tokens.css:247-256 with the installed ones so they stop lying.
  2. Keyboard must not animate in WebKit. First key after a mouse action plays the full spring (Ctrl+\, Esc on a sheet). Look at how inputSource.svelte.ts:46-59 orders its keydown against the shortcut handlers, and at Shell.svelte .instant / Morph.svelte:99-112. Confirm on real Safari. Make keys-no-motion.spec.ts stop priming with an Esc (or add a pointer click first) so it can catch this.
  3. Tooltips: no travel. tooltip.ts:205 (focus) and :183 should always use "instant" while warm; remove the travel branch and chrome.css:67-72 (R3, plus a 528 ms keyboard animation).
  4. Press scale to 0.97 everywhere. Files: chrome.css:96,148 (.ib, .seg button), Selector.svelte:344, ToastRow.svelte:139, EmptyState.svelte:73, SignIn.svelte:274, RowActions.svelte:236 (0.94), cm.css:706 (tag chips), ColorPicker.svelte:77 and Inspector.svelte:223 (0.9), Settings.svelte:710 (0.92), editor.css:182 (0.92). Decide on the checkboxes (SpringCheckBox.svelte:86, cm.css:309, both 0.86): the squeeze is part of the spring-check look, so either accept it as a named exception in TASTE or move to 0.97.
  5. No scale(0). SpringCheckBox.svelte:110 and cm.css:324 (the check fill). Start at 0.6 with opacity 0, same spring.
  6. Replace plain easing keywords with the house curves. ease-out / ease-in / ease / linear on UI motion: cm.css:312,349,378,390, SpringCheckBox.svelte:89,128,156,165, strike.ts:26, ToastCapsule.svelte:149, Selector.svelte:260, SquishSwitch.svelte:215 area (colour 320 / scale 180), lib/motion.ts:17,51 (tab swap, arrive), TopPills.svelte:167,174, Palette.svelte:62, TickSlider.svelte:109, editing.svelte.ts:640,643, picked.ts:271, tree.css:157, copied.ts:77,90, Shell.svelte:92,100 (t*t drawer exit). The sonner list item (400ms ease) needs an override in Toasts.svelte.
  7. Cut the literal over-300 ms values. PhoneStack.svelte:295,311,376,427,432 and Backdrop.svelte:415,623,635,704 (380), Shell.svelte:563-566 (520), NoteList.svelte:522 and motion.ts:106 (320), motion.ts:138 (460), tree.css:152 (420), editor.css:268 (420), editing.svelte.ts:640 (320), LinkCard.svelte:86 (460), Palette.svelte:60 (340), SignIn.svelte (520/420), FlipLabel.svelte:35 (420), TopPills.svelte:362 (320), Backdrop.svelte:744 (450), copied.ts (1.57 s), Shell.svelte:87 OPEN 320, swipe-row.ts long-swipe settle (432).
  8. Tags fold: fade the rows. Sidebar.svelte:295 swaps with {#if}; give the rows a 150 ms fade (and 2 px blur), no height tween (layout that moves text stays still).
  9. Blur on crossfades that have none. swapTabs (glass limits this, keep to glass-free parts), fadeIn on note open, Settings page swap, ArtStack picture change, bar⇄bar swap in Morph.svelte:107-108, header title swap in TopPills.svelte:160-176, Roll.svelte digits.
  10. Exits that are instant on pointer paths. Palette scrim click, tag picker (TagPicker.svelte:91 has in:pop only).
  11. Dead CSS or missing feature: editor.css:389-396 styles a note-title view transition that nothing starts. Delete it, or build the row → note title flight at ≤300 ms.
  12. Check the date label (FlipLabel.svelte): in the Chromium run its morph animations kept appearing in later probe windows.

What was not covered (and why)

  • Sign-in, install hint, passkeys, backdrop picker, link card, trash preview: read in code, not triggered (needs a fresh server, an unresolved link target or a non-empty Trash). Marked code.
  • Phone foot tabs, Palette on phone, sub-menus: control not reached by the probe; code only.
  • Touch swipes and edge-swipe back were driven only in Chromium (CDP touch); WebKit rows for those are code only.
  • JS springs (selector, switch, toast capsule, block drag, row swipe release) are read from code; the browser timing list does not show them.
  • WebKit here is Playwright WebKit on aarch64 Linux, not Safari. The two WebKit-only keyboard animations need a Safari check.
  • Frame rate and dropped frames are not measured (Linux VMs, no GPU). The Mac VM is the place for that.
# Motion audit: product app (origin/dev 55f35fcd, 2026-11-02) Scope: `apps/web`, `packages/ui`, `packages/editor` as on origin/dev (what runs on prod). No code was changed. ## How it was checked - **Code**: every `transition`, `animation`, `@keyframes`, `.animate(...)`, Svelte `in:/out:` and spring in the three packages was read. File:line below is from origin/dev. - **Browser**: a throwaway Playwright probe (not in the repo) fired each interaction and recorded every CSS transition, CSS animation and Web Animation that started (target, duration, delay, easing, transform-origin). Runs: **Chromium** on dev-01 at 1440 and 390 px; **WebKit** on dev-02 at 1440 and 390 px (Playwright WebKit on aarch64 Linux, not real Safari). Touch swipes used CDP touch events (Chromium only). - Column "animates?" says **C** = seen in Chromium, **W** = seen in WebKit, **code** = read in code only (not triggered or not reachable in the probe). - Linux VMs have no GPU, so nothing here is a frame-rate measure. Durations are the browser's declared timings. - JS-driven springs (selector capsule, squish switch, toast capsule, block drag) draw by script, so the browser timing list does not show them; their numbers come from the code. ## Rules used (kayg's binding set) R1 press scale 0.97 · R2 never scale(0) · R3 instant subsequent tooltips · R4 custom ease-out (no plain `ease`, `ease-out`, `ease-in`, `linear` on UI motion) · R5 origin-aware · R6 nothing over 300 ms · R7 blur crossfades. Plus the TASTE rules: keyboard never animates, hover controls appear instantly, reduced motion keeps meaning without movement. ## Two facts that explain many rows 1. **Every house spring settles at 416 to 556 ms, not the 260 to 380 ms the tokens say.** `tokens.css:247-256` names `--spring-*-ms` values (260/320/380/520/340), but `installSprings()` (`packages/ui/src/lib/spring.ts:31-42`) overwrites them with the time each curve takes to get within 0.1 % of its target. Measured in the browser: sheet/dock/`--cl` 556 ms, bar morph and glass 528 ms, sheet size 416 ms. Most of the move is done by ~60 %, but the declared time is what the rule counts, and what keeps the main thread/compositor busy. 2. **WebKit still animates the first key after a mouse action.** In the WebKit run, `Ctrl+\` (hide places) played the full 556 ms spring and `Esc` closing the Insert sheet played the 416 ms bar morph. Chromium played nothing for the same steps. `keys-no-motion.spec.ts` primes with an `Esc` key before the key under test (`ready()`), which would hide this. Needs a check on real Safari. Verdicts: **OK** = fine as is (reason given) · **GAP** = should animate (or animate better) and does not · **VIOLATION** = breaks a binding rule. --- ## 1. Sidebar (places, tags) | Interaction | Where | Animates? | Duration / easing | Verdict | Why | |---|---|---|---|---|---| | Hover place or tag row | `Sidebar.svelte:451-455` | No (C, W: 0 anims) | instant in and out | OK | TASTE: hover controls appear instantly. No fade-out (TASTE says "short fade out"), minor. | | Press a place row | `Sidebar.svelte:449` | No: `scale 150ms` is declared but no `:active` rule uses it | n/a | GAP (low) | No press feedback on the most-used rows (R1 would be 0.97). Whole-row targets are big, so low priority. | | Click place or tag (list changes) | `lib/motion.ts:14-26` `arrive` | Yes (C): list rows rise 6 px and fade | 260 ms, spring-snap curve | OK | Pointer only. ArrowDown/Enter in the list: 0 anims (C, W), which is correct. | | Tags section fold / unfold | `Sidebar.svelte:295` (`{#if !folded.tags}`), chevron `:369` | Chevron yes (C, W); **rows no** (pop in and out) | chevron `rotate 180ms` ease-out-quint | GAP | Chevron says "animated", the rows jump. "Never animate layout that moves text" argues against a height tween, so use a fade (+2 px blur) on the rows, not height. Same on the phone places page. | | Hide / show places, click | `Shell.svelte:272`, `cm.css:34,105`, `editor.css:53`, `bar.css:28` | Yes (C, W): grid columns, paper offset (`--cl`), editor `padding-left`, bar `--cl` | **556 ms** spring; side pane opacity 160 ms, visibility +220 ms | VIOLATION R6 | Big layout move and it is the pointer path, so it should animate, but at ≤300 ms. | | Hide / show places, `Ctrl+\` | `Shell.svelte` `.instant` class | C: none. **W: yes, 7 anims at 556 ms (hide)** | n/a | OK in C, VIOLATION in W | Keyboard never animates (TASTE #344). See "WebKit still animates the first key". | | Drawer for places (narrow window) | `Shell.svelte:87-107, 213-214` | Yes (code): slide + clip in, scrim fade | in **320 ms** custom spring / out 180 ms `t*t` (ease-in) | VIOLATION R6, R4 | 320 over the limit; the exit curve is an ease-in. Origin is correct (grows from the left edge). | | Drag-reorder or merge a tag | `Sidebar.svelte:410-432`, `lib/motion.ts:93-116` | Yes (C, W): neighbours glide, FLIP, lifted row scale 1.02 | glide 200 ms ease-out-quint; FLIP **320 ms** spring | VIOLATION R6 (small) | Pointer drag, so motion is right; trim FLIP to ≤300. | | Resize panes (drag the divider) | `Shell.svelte:118-140`, `.resizing` | No (C, W: 0 anims) | follows pointer 1:1 | OK | Direct manipulation: the thing under the finger must not lag. `.resizing` switches transitions off. | ## 2. Note list | Interaction | Where | Animates? | Duration / easing | Verdict | Why | |---|---|---|---|---|---| | Hover note row | `RowActions.svelte`, `NoteList.svelte` | No (C, W) | instant | OK | Hover rule: instant. | | Press note row | no `:active` rule | No (C, W) | n/a | GAP (low) | Same as sidebar rows. | | Click row, desktop (list → note) | `lib/motion.ts:83-90` `fadeIn` → `swapTabs:49-53` | Yes (C, W): `.cm-host` opacity only | **140 ms plain `ease-out`**, no blur, no movement | VIOLATION R4, R7 (minor) | Only the words fade; nothing ties the row to the note. | | Shared-title flight row → note | `styles/editor.css:389-396` | **No: dead CSS.** No `startViewTransition` anywhere in `src` | would be 420 ms | GAP | `::view-transition-group(note-title)` is styled but never triggered. Either build it (≤300 ms) or delete the CSS. | | ↑/↓ and Enter through the list | list key handlers | No (C, W: 0 anims) | n/a | OK | Frequent keyboard action: must not animate (Emil Kowalski / TASTE). | | New note shows up at the top | `NoteList.svelte:317,522` `row-in` | Yes (code): rise 6 px + fade | **320 ms** ease-out-quint | VIOLATION R6 (small) | | | Rows re-order (note edited, deleted) | `lib/motion.ts:93-116` FLIP | Yes (C, W: `li` waapi) | **320 ms** spring | VIOLATION R6 (small) | | | Rows ⇄ gallery cards | `lib/motion.ts:119-141` `morphLayout` | Yes (code; control not found by probe) | **460 ms** spring | VIOLATION R6 | In-place morph is right (TASTE), duration is not. | | ⌘/Ctrl-click row → select mode, BulkBar | `rows/BulkBar.svelte:82-100` | Yes (C, W): bar slides up; buttons fade | `translate 260ms` ease-out-quint; opacity 140 ms | OK | Pointer path, ≤300, custom curve. | | Tick a row in select mode | `rows/RowActions.svelte:128` | No | instant | OK | Comment in code: picking happens tens of times a day. | | `Esc` leaves select mode | `BulkBar.svelte:100` `.instant` | No (C, W) | n/a | OK | Keyboard. | | BulkBar button press | `BulkBar.svelte:137-139` | Yes (code) | `scale 0.97`, 160 ms | OK | Matches R1. | | Right-click or ⋯ → context menu opens | `packages/ui/.../ContextMenu.svelte:44-56` | Yes (C, W): menu scale 0.96→1, glass fade, rows fade + 3 px blur | 200 ms spring; 140 ms ease-out-quint | OK | Origin = pointer or the ⋯ (`pos.origin`), blur on rows, glass not faded (backdrop-filter safe). | | Context menu closes (click away) | `ContextMenu.svelte:183-195` | Yes (code): scale 0.98 + fade | 100 ms | OK | Exit faster than enter. | | Context menu opened or closed by key (`Shift+F10`, `Esc`) | `ContextMenu.svelte:44-46,184` | No (C, W: 0 menu anims) | n/a | OK | Keyboard never animates. | | Hover menu item | `ContextMenu.svelte` | No (C, W) | instant | OK | | | Swipe a row (finger drag, release) | `rows/swipe-row.ts:174-200`, `swipe-math.ts` | Yes (C-390): drag follows 1:1; release spring from finger speed | release 280 to 432 ms spring | VIOLATION R6 (long swipe, 432 ms); otherwise OK | Interruptible spring that keeps velocity is the right design. Button pop on threshold is 260 ms `cubic-bezier(.3,0,.2,1)`, fine. | | Two-finger sideways scroll on desktop | same | Yes (C, W) | 260 ms spring | OK | | | Swipe action button press | `RowActions.svelte:236-238` | Yes (code) | `scale 0.94` | VIOLATION R1 | | | Row action buttons fade in | `RowActions.svelte:207-214` | Yes (code) | 120 to 160 ms ease-out-quint; off while swiping | OK | | | Focus the Filter field | list search / bar | Yes (C, W): bar morph | width **528 ms** spring + layer fade 100/180 ms | VIOLATION R6 | See Bar morph. | ## 3. Bottom bar, sheets, palette, tooltips, toasts | Interaction | Where | Animates? | Duration / easing | Verdict | Why | |---|---|---|---|---|---| | Bar morph (rest ⇄ text bar ⇄ filter ⇄ composer) | `packages/ui/.../Morph.svelte:96-112,186-221`, `styles/bar.css:28,42` | Yes (C, W): capsule width/height spring, glass bg, layers swap | size **528 ms**; old layer out 100 ms, new in 180 ms + 3 px rise; no blur | VIOLATION R6; GAP R7 | In-place morph is what TASTE wants. Duration is over, and the plain bar⇄bar swap has no blur (the sheet swap does). | | Bar swap from the keyboard | `Morph.svelte:99-112`, `base.css:255-263` | C: none. **W: yes** (`Esc` closing Insert: width/height 416 ms) | n/a | OK in C, VIOLATION in W | Keyboard never animates. | | Hover bar icon button | `styles/chrome.css:84-105` | Yes (C, W) | bg/colour 150 ms ease-out-quint | OK | | | Press bar icon button | `chrome.css:96-98` `.ib:active` | Yes (C, W) | **scale 0.96**, 150 ms | VIOLATION R1 | Same 0.96 on `.seg button` (`chrome.css:148-150`). | | Press bar tab / pill (`.press`) | `styles/base.css:213-221` | Yes (C, W) | scale 0.97, 150 ms | OK | The reference implementation of R1. | | Insert / Style / Note info sheet opens (bar grows into a sheet) | `Morph.svelte:96-110,194-196` | Yes (C, W) | size **416 ms** (`--spring-style`), glass bg 528 ms; layers out 60 ms, in 170 ms with 4 px blur | VIOLATION R6; R7 OK | Blur crossfade and in-place growth are right. Plain content swaps skip the blur on purpose (full-layer filter cost, #469). | | Sheet closes (click outside) | same | Yes (C, W) | 416 ms size | VIOLATION R6 | | | Focus mode on (click) | `Shell.svelte:458-482` | Yes (C, W) | panes fade 160 ms + slide 220 ms ease-out-quint; paper re-centres on **556 ms** spring | VIOLATION R6 (paper only) | | | Focus mode on/off (`Ctrl+.`) | `Shell.svelte` `.instant` | No (C, W) | n/a | OK | Keyboard. | | Date label click ("Today" ⇄ exact date, text morph) | `packages/ui/src/components/FlipLabel.svelte:35` (torph `TextMorph`) | Yes (C): 3 span animations | **420 ms** `cubic-bezier(.19,1,.22,1)` + 210 ms + 105 ms | VIOLATION R6 | Also: in the Chromium run the same 3 span animations showed up in every later probe window. Worth checking the label is not re-morphing on a timer. | | Palette opens (click) | `components/Palette.svelte:47-65` | Yes (code) | search pill → panel FLIP, **340 ms** `cubic-bezier(.34,1.3,.64,1)`; content fade 140 ms +90 | VIOLATION R6 (small) | Origin-aware (grows from the pill). Falls back to 260 ms rise + scale 0.96. | | Palette opens by `Ctrl+K` | `Palette.svelte:49` | No (C, W: no palette anims) | n/a | OK | Keyboard. | | Palette closes (click scrim, Esc) | `Palette.svelte` | No (C, W) | instant | GAP (low) for the click path | Pointer close has no exit; Esc is fine. | | Palette results change / type | `composer/LineMorph.svelte:41-75`, `ComposerBody.svelte:567` | Yes (C, W) | labels out 110 ms / in 260 ms (+60) with 2 px blur; list height **528 ms** | VIOLATION R6 (height) | Blur crossfade on labels is correct. | | Palette ↑/↓ through results | `ComposerBody.svelte` | C: none | n/a | OK | Keyboard. | | Tooltip, first (hover ≥400 ms) | `lib/tooltip.ts:27,185`, `chrome.css:3-18` | Yes (C, W): opacity + scale 0.94→1 | **160 ms** ease-out-quint; origin = trigger edge | OK | Origin-aware, ≤300, never scale(0). No blur (TASTE mentions a little). | | Tooltip next to a warm one, mouse | `tooltip.ts:183` (`show(..."instant")`) | No (C, W) | 0 ms | OK | R3. Because `pointerleave` always closes the first tip, mouse moves are always "instant". | | Tooltip next to a warm one, **keyboard focus** | `tooltip.ts:205` (`open ? "travel"`), `chrome.css:67-72`, `tooltip.ts:108-123` | Yes (code): tip glides and resizes, words slide 8 px with 3 px blur | translate/width/height **528 ms** spring; words 140/220 ms | VIOLATION R3, R6, keyboard | Subsequent tooltips must be instant, and this is a keyboard path. The base.css keyboard rule zeroes the CSS transition but not the script animation on the words (`tooltip.ts:112-122`). Easiest fix: always `"instant"` when warm. | | Tooltip closes | `chrome.css:64-66` | Yes (C, W) | 100 ms | OK | | | Tooltip by long-press (touch) | `tooltip.ts:198` | Yes (code) | 500 ms hold, 160 ms pop | OK | | | Toast in the bar (letters, count roll) | `primitives/toast/ToastRow.svelte:69-72`, `Roll.svelte:19-25` | Yes (C, W) | letters 260 ms `cubic-bezier(.2,.7,.2,1)` +9 ms stagger; digit roll 260/200 ms | OK | Custom curves, ≤300. | | Stand-alone toast capsule (no bar) | `toast/ToastCapsule.svelte:129-150,29-30` | Yes (code) | dot 180 ms `cubic-bezier(.2,.9,.3,1.3)`; width spring response 0.42 s; words fade **160 ms plain `ease-out`** | VIOLATION R4, R6 | Starts from scale 0.2 (not 0). | | Toast list items move (sonner) | `toast/Toasts.svelte` (sonner default CSS) | Yes (C-390): `opacity` and `transform` on `li`, seen while a swipe-delete toast arrived | **400 ms plain `ease`** | VIOLATION R4, R6 | Library default is leaking through `unstyled`. Override in `Toasts.svelte`. | | Toast Undo press | `ToastRow.svelte:139-141` | Yes (code) | `scale 0.96` | VIOLATION R1 | | | Toast leaves | sonner + `Toasts.svelte:33-36` | Replaced toasts: cut at once; timed-out: sonner default | see above | OK / VIOLATION as above | Cut on replace is deliberate. | ## 4. Phone navigation | Interaction | Where | Animates? | Duration / easing | Verdict | Why | |---|---|---|---|---|---| | Tap list row → note (push) | `components/PhoneStack.svelte:295-318` | Yes (C-390, W-390) | `translate` **380 ms** `cubic-bezier(.32,.72,0,1)` | VIOLATION R6 | Drawer curve is custom and right; 380 ms is over. Under-screen visibility switches at +380 ms. | | Back pill (note → list → places) | same, `chrome/TopPills.svelte:367` | Yes (C-390, W-390) | screens 380 ms; pill width 240 ms, bg 200 ms | VIOLATION R6 | | | Edge-swipe back | `PhoneStack.svelte:303` `.tracking .screen { transition: none }` | Yes (code) | follows finger, then spring | OK | Direct manipulation; release spring keeps speed. | | Back/forward pills appear | `TopPills.svelte:362,497-505` | Yes (code) | `pill-in` **320 ms** spring-snap, scale 0.7→1 | VIOLATION R6 (small) | Never from 0. | | Pill face swap (back ⇄ check, line ⇄ title) | `TopPills.svelte:375-484` | Yes (code) | opacity 180 + scale 220 + blur 2 px, ease-out-quint | OK | Blur crossfade is exactly R7. | | Pill press | `TopPills.svelte:350-352` | Yes (C-390) | `scale 0.97` | OK | | | Header title swaps while the note scrolls (scroll-linked) | `TopPills.svelte:160-176`, `chrome/header/title.ts`, `headings.ts` | Yes (code) | words move ±14 px on the morph spring; in 100 ms ease-out, out 160 ms `cubic-bezier(.4,0,1,1)` | VIOLATION R4, R6; GAP R7 | Exit is an ease-in, spring is ~528 ms, no blur on the swap. Observer-driven (no scroll handler), which is good. | | Tap the pill to jump to a heading | `TopPills.svelte:186-189` | Yes (code): `scrollTo({behavior:"smooth"})`, instant on reduced motion | browser's own smooth scroll | OK | Duration/curve are not ours to tune; acceptable. | | Foot tabs (Notes ⇄ Settings thumb) | `chrome/PhoneFoot.svelte:175-191` | Yes (code; role=tab not found by probe) | thumb `translate` **528 ms** spring; colour 160 ms | VIOLATION R6 | | | Search / New dock leaves and returns | `chrome/ListDock.svelte:52-65` | Yes (C-390): `translate` | **556 ms** spring | VIOLATION R6 | | | Press Search pill | `TopPills`/`ListDock` `.field` | Yes (C-390) | bg + `scale` 150 ms | OK | | | Phone: tap row, press (hold) | no `:active` | No | n/a | GAP (low) | | ## 5. Editor | Interaction | Where | Animates? | Duration / easing | Verdict | Why | |---|---|---|---|---|---| | Hover a line → margin controls (drag handle, ⌘ pill) | `styles/editor.css:297-319` | Appear: no (C, W). Fade out yes | in 0 ms, out 120 ms ease-out-quint | OK | Exactly TASTE: instant in, short fade out. | | Controls glide to the next line | `editor.css:314` | Yes (code) | 140 ms ease-out-quint | OK | Skipped on keyboard/reduced motion. | | Block handle hover | `cm.css:549`, tooltip | tooltip only | 160 ms | OK | | | Block handle press | `editor.css:331`, `cm.css:549` | No (`cursor: grabbing` only) | n/a | GAP (low) | No press scale (R1); drag lift covers it once moving. | | Drag a block | `packages/editor/src/blocks/follow.ts`, `picked.ts:271`; `editor.css:355-384` | Yes (code): spring-follow (rAF), drop line glides, target tint | drop line `translate/left 120 ms`; **ring `cm-ring-in` 250 ms plain `ease-out`** | VIOLATION R4 (ring only) | The rest is custom and short. | | Tick a task (click) | `styles/cm.css:305-333,349-360,411-418`, `primitives/check/SpringCheckBox.svelte:82-132` | Yes (C, W) | box press `scale 0.86` 90 ms; fill `scale 0→1` **500 ms** spring; tick stroke 260 ms (+70); box-shadow 150 ms `ease-out`; row colour/strike **500 ms + 120 ms delay** `ease-out` | VIOLATION R1, R2, R4, R6 | The squeeze is 0.86 not 0.97, the fill starts at `scale: 0` (`cm.css:324`, `SpringCheckBox.svelte:110`), plain keywords on box-shadow/stroke/colour, total 620 ms. Fix: fill from scale 0.6 + opacity, press 0.97, springs ≤300. | | Untick a task | same | Yes (C, W) | tick 120 ms `ease-in`, fill 500 ms | VIOLATION R4, R6 | | | Tick by key (`Ctrl+Enter`) | `.cm-task-instant`, `strike.ts:25` | No (C, W: only the bar swap from the preceding click) | n/a | OK | Keyboard never animates. | | Tree guide lights up on hover | `packages/ui/src/styles/tree.css:73-83` | Yes (C, W) | `--tree-lit` 160 ms in / 240 ms; bullets 160/240 ms, ease-out-quint | OK | Fine, hover-only, off for keyboard, touch and reduced motion. | | Nest a line with the pointer | `tree.css:149-181` `tree-grow` | Yes (code) | **420 ms** ease-out-quint, clip-path, tiny overshoot | VIOLATION R6 | `Tab` nesting: none (C, W), correct. | | Tag chip hover | `cm.css:628,683` | Yes (code; chip not hit by probe at 1440) | bg 140 ms ease-out-quint | OK | | | Tag chip × appears on hover | `cm.css:668-676` | Yes (C-390) | opacity 120 ms; `scale 0.6→1` 220 ms `cubic-bezier(.34,1.56,.64,1)` | OK | Custom overshoot curve, not from 0, origin is the chip corner. | | Tag chip / + press | `cm.css:706-708` | Yes (code) | `scale 0.96` | VIOLATION R1 | | | Tag picker opens | `components/TagPicker.svelte:77-91` | Yes (C) | 220 ms overshoot spring, scale 0.9→1, `transform-origin` from `pos.origin` | OK | Origin-aware. **Closes instantly** (no `out:`): GAP (low) for pointer closes. | | Link hover | `styles/links.css:161-170` | Yes (code) | 140 ms ease-out-quint | OK | | | Link preview card | `components/LinkCard.svelte:85-86` | Yes (code; link did not resolve in the probe) | scale 0.86→1 **460 ms** `cubic-bezier(.34,1.4,.64,1)` | VIOLATION R6 | Keyboard skips it (`!now.keyboard`). | | Link card button press | `LinkCard.svelte:289-291` | Yes (code) | `scale 0.97` | OK | | | Turn a line into a note / delete lines | `lib/editing.svelte.ts:616-643` | Yes (code) | lines fly **320 ms** (+22 ms stagger) `cubic-bezier(.77,0,.175,1)`, head pulse 260 ms **plain `ease-out`**, 4 px blur | VIOLATION R4, R6 | Ease-in-out is the wrong shape for something leaving; blur is right. | | Block morphs into its new form | `editor.css:265-285` `morph-in` | Yes (code) | **420 ms** ease-out-quint, blur 4 px→0 | VIOLATION R6 | Blur crossfade OK. | | "Jump to" flash | `editor.css:271,283` | Yes (code) | **1.2 s** ease-out-quint | VIOLATION R6 (strict) | A highlight pulse, not movement; shorten or accept as an exception. | | Paper width Narrow / Wide / Full | `lib/paper.ts:123-135`, `cm.css:105-124` | Yes (code) | springs **528/556 ms** | VIOLATION R6 | Skipped when only one side floats. | | Source mode / Show markdown toggle | bar button | No (C, W: 0 anims) | n/a | OK | Instant text swap; frequent. | | Caret blink | CodeMirror | Yes (endless) | `cm-blink` 1.2 s | OK | Text cursor, not UI motion. Vim caret respects reduced motion (`vim/caret.ts:34`). | ## 6. Settings | Interaction | Where | Animates? | Duration / easing | Verdict | Why | |---|---|---|---|---|---| | Notes ⇄ Settings (tab, click) | `lib/motion.ts:36-53` `swapTabs` | Yes (C, W): everything that is not glass fades in | opacity only, **140 ms plain `ease-out`**, no blur | VIOLATION R4; GAP R7 | Glass deliberately never fades (#287), so a blur crossfade is hard here. Curve should be the house one. | | Notes ⇄ Settings (`Ctrl+,`) | `swapTabs:49` | No (C, W) | n/a | OK | Keyboard. | | Settings page nav row | `Settings.svelte` | Yes (C, W): `.inner` | 260 ms spring | OK | | | Selector capsule (click) | `primitives/selector/Selector.svelte:58-110,260-299` | Yes (code; JS springs, leading edge then trailing) | spring response 0.3 s, no bounce; label colour **250 ms plain `ease-out`** | VIOLATION R4 | The stretch-and-catch capsule is the TASTE reference. | | Selector (arrow keys) | `Selector.svelte:161` | No (C: 0 anims) | n/a | OK | | | Selector option press | `Selector.svelte:344-346` | Yes (code) | `scale 0.96` | VIOLATION R1 | | | Squish switch (click) | `primitives/switch/SquishSwitch.svelte:215`, `physics.ts:10-12` | Yes (C): thumb spring (script), `scale` 180 ms and track colour **320 ms plain `ease-out`** | response 0.34 s / 0.32 s | VIOLATION R4, R6 (320) | | | Squish switch (Space) | `SquishSwitch.svelte` | No (C: 0 anims) | n/a | OK | | | Accent colour dot: hover, press, select | `Settings.svelte:708-742` | Yes (C) | ring 160 ms, dot `scale 0.92` on press, backdrop colour 380 ms, ping 1.4 s | VIOLATION R1 (0.92), R6 | | | Backdrop tile: hover, press, select | `components/appearance/BackdropGrid.svelte:165-170` | Yes (C, W) | ring 160 ms, `scale 0.97` 150 ms | OK | | | Backdrop picture changes | `components/ArtStack.svelte:69-82`, `Backdrop.svelte:415,623-704` | Yes (C) | new art 300 ms fade (`art-in`), scale 240 ms; dim/edge layers 380 to 450 ms `ease-drawer` | VIOLATION R6 (380/450); GAP R7 | A full-screen picture crossfade with no blur bridge. | | Copy link button | `components/settings/CopyLink.svelte:46-70,110-116` | Yes (C): hover 200 ms; "copied" burst | hover 200 ms ease-out-quint; copied **1.57 s linear** (`lib/copied.ts:69-90`) | VIOLATION R4, R6 | Press `scale 0.97` is right. | | Appearance tick sliders open/close | `appearance/TickSlider.svelte:70-114,219-258` | Yes (code) | 160 to 280 ms; chevron 200 ms; drop `140 ms` **plain `ease-out`** (`:109`) | VIOLATION R4 (small) | Off for keyboard and reduced motion. | | Rows fade up inside a page | `appearance/PageRows.svelte:40`, `motion.ts:10` | Yes (code) | 200 ms, 4 px rise | OK | | | Passkey list / install hint / backdrop picker | `PasskeySection.svelte:262`, `InstallHint.svelte:171`, `BackdropPicker.svelte:326,354` | Yes (code) | 160 / 260 / 120 ms ease-out-quint; skeleton pulse loops | OK | Ambient loops stop on reduced motion. | ## 7. Trash, sign-in, background | Interaction | Where | Animates? | Duration / easing | Verdict | Why | |---|---|---|---|---|---| | Open a trashed note (preview) | `components/TrashPreview.svelte:84,134,151,166-176` | Yes (code) | fade 200 ms; push 32 px; pill press `scale 0.97` 120 ms | OK | Trash was empty in the probe, so not triggered. | | "Delete forever?" ask | `TrashList.svelte:283-295` | Yes (code) | 180 ms, scale 0.96→1 | OK | | | Sign-in card and chunks | `components/SignIn.svelte:177-340` | Yes (code) | card **520 ms**, fade 420 ms, chunks 260 to 300 ms; Go button press `scale 0.96` (`:274`) | VIOLATION R6, R1 | Shown once per sign-in. | | First paint of the app after sign-in | `Shell.svelte:561-575` `arrive` | Yes (code) | **520 ms** ease-out-quint, 10 px rise | VIOLATION R6 | | | Backdrop follows page scroll (iOS toolbar fix) | `components/Backdrop.svelte:430-446` | Yes: `animation-timeline: scroll(root)` | linear, 1 ms (position only) | OK | Scroll-linked on purpose, compositor-run, no easing wanted. | | Backdrop sky: stars, clouds | `Backdrop.svelte:506-590` | Yes (endless) | 4.2 s twinkle, 240/420 s drift | OK | Ambient; off on reduced motion. | | Reduced motion | `base.css:247-253`, per-component `@media` | Handled almost everywhere | short fades or none | OK | | ## Ranked fix list Ordered by how many rows each one clears and how visible it is. Not done here; this task changed no code. 1. **Make every spring settle in ≤300 ms.** One change in `packages/ui/src/lib/spring.ts:31-42` (`installSprings`) plus its settle rule (`:15-19`, 0.1 % band; use a 2 % band or stiffer response). Clears the 556/528/416 ms rows: hide/show places, bar morph, sheets, dock, foot thumb, paper width, Focus paper, palette list height. Then align the literal numbers in `tokens.css:247-256` with the installed ones so they stop lying. 2. **Keyboard must not animate in WebKit.** First key after a mouse action plays the full spring (`Ctrl+\`, `Esc` on a sheet). Look at how `inputSource.svelte.ts:46-59` orders its `keydown` against the shortcut handlers, and at `Shell.svelte` `.instant` / `Morph.svelte:99-112`. Confirm on real Safari. Make `keys-no-motion.spec.ts` stop priming with an `Esc` (or add a pointer click first) so it can catch this. 3. **Tooltips: no travel.** `tooltip.ts:205` (focus) and `:183` should always use `"instant"` while warm; remove the `travel` branch and `chrome.css:67-72` (R3, plus a 528 ms keyboard animation). 4. **Press scale to 0.97 everywhere.** Files: `chrome.css:96,148` (`.ib`, `.seg button`), `Selector.svelte:344`, `ToastRow.svelte:139`, `EmptyState.svelte:73`, `SignIn.svelte:274`, `RowActions.svelte:236` (0.94), `cm.css:706` (tag chips), `ColorPicker.svelte:77` and `Inspector.svelte:223` (0.9), `Settings.svelte:710` (0.92), `editor.css:182` (0.92). Decide on the checkboxes (`SpringCheckBox.svelte:86`, `cm.css:309`, both 0.86): the squeeze is part of the spring-check look, so either accept it as a named exception in TASTE or move to 0.97. 5. **No `scale(0)`.** `SpringCheckBox.svelte:110` and `cm.css:324` (the check fill). Start at 0.6 with opacity 0, same spring. 6. **Replace plain easing keywords with the house curves.** `ease-out` / `ease-in` / `ease` / `linear` on UI motion: `cm.css:312,349,378,390`, `SpringCheckBox.svelte:89,128,156,165`, `strike.ts:26`, `ToastCapsule.svelte:149`, `Selector.svelte:260`, `SquishSwitch.svelte:215` area (colour 320 / scale 180), `lib/motion.ts:17,51` (tab swap, arrive), `TopPills.svelte:167,174`, `Palette.svelte:62`, `TickSlider.svelte:109`, `editing.svelte.ts:640,643`, `picked.ts:271`, `tree.css:157`, `copied.ts:77,90`, `Shell.svelte:92,100` (`t*t` drawer exit). The sonner list item (`400ms ease`) needs an override in `Toasts.svelte`. 7. **Cut the literal over-300 ms values.** `PhoneStack.svelte:295,311,376,427,432` and `Backdrop.svelte:415,623,635,704` (380), `Shell.svelte:563-566` (520), `NoteList.svelte:522` and `motion.ts:106` (320), `motion.ts:138` (460), `tree.css:152` (420), `editor.css:268` (420), `editing.svelte.ts:640` (320), `LinkCard.svelte:86` (460), `Palette.svelte:60` (340), `SignIn.svelte` (520/420), `FlipLabel.svelte:35` (420), `TopPills.svelte:362` (320), `Backdrop.svelte:744` (450), `copied.ts` (1.57 s), `Shell.svelte:87` OPEN 320, `swipe-row.ts` long-swipe settle (432). 8. **Tags fold: fade the rows.** `Sidebar.svelte:295` swaps with `{#if}`; give the rows a 150 ms fade (and 2 px blur), no height tween (layout that moves text stays still). 9. **Blur on crossfades that have none.** `swapTabs` (glass limits this, keep to glass-free parts), `fadeIn` on note open, Settings page swap, `ArtStack` picture change, bar⇄bar swap in `Morph.svelte:107-108`, header title swap in `TopPills.svelte:160-176`, `Roll.svelte` digits. 10. **Exits that are instant on pointer paths.** Palette scrim click, tag picker (`TagPicker.svelte:91` has `in:pop` only). 11. **Dead CSS or missing feature:** `editor.css:389-396` styles a `note-title` view transition that nothing starts. Delete it, or build the row → note title flight at ≤300 ms. 12. **Check the date label** (`FlipLabel.svelte`): in the Chromium run its morph animations kept appearing in later probe windows. ## What was not covered (and why) - Sign-in, install hint, passkeys, backdrop picker, link card, trash preview: read in code, not triggered (needs a fresh server, an unresolved link target or a non-empty Trash). Marked `code`. - Phone foot tabs, Palette on phone, sub-menus: control not reached by the probe; code only. - Touch swipes and edge-swipe back were driven only in Chromium (CDP touch); WebKit rows for those are code only. - JS springs (selector, switch, toast capsule, block drag, row swipe release) are read from code; the browser timing list does not show them. - WebKit here is Playwright WebKit on aarch64 Linux, not Safari. The two WebKit-only keyboard animations need a Safari check. - Frame rate and dropped frames are not measured (Linux VMs, no GPU). The Mac VM is the place for that.
Author
Owner

PR #863 fixes this audit (head f2c3a44c, items 1–7; backdrop picture blur skipped and Sonner left for #836, see the PR). Frame numbers before vs after:

Frame measurements, before vs after (Mac VM macos-01-std, real GPU, lock /tmp/mac-bench.lock held only while it ran)

Before = origin/dev 55f35fcd; after = PR head f2c3a44c (same tree as the tested one). Throwaway spec (not in the repo): real server, 3 seeded notes, 8 runs per gesture; each run records requestAnimationFrame deltas from just before the pointer click to 700 ms after it. "drops" = frames over 20 ms per run in that 700 ms window. Backend binary: older macOS debug build (fix759b), the same for both sides.

WebKit 1440 (the meaningful one: 60 Hz, p50 17 ms)

gesture frames in window (before → after) p95 ms worst frame ms drops per run
sidebar hide (click) 21 → 35 109 → 47 252 → 104 10.6 → 11.0
sidebar show (click) 19 → 36 132 → 45 224 → 76 10.1 → 11.5
sheet open (Insert) 40 → 43 31 → 32 1046 → 87 3.4 → 4.1
sheet close (outside click) 44 → 42 32 → 29 116 → 301 3.4 → 3.3
list → note 45 → 43 23 → 28 186 → 282 3.4 → 3.5
Tags fold (no motion before → new unfold) 45 → 44 25 → 29 77 → 163 3.0 → 3.6
Tags unfold 44 → 45 25 → 30 313 → 216 2.8 → 3.8

Reading: the layout-heavy gestures (sidebar) were the ones the 556 ms spring hurt: the whole window now runs at p50 17 ms with p95 halved (109 → 47, 132 → 45). Sheet, list → note and Tags are within noise of before (one stray 100–300 ms frame per eight runs on either side; these are single-frame outliers, not sustained drops; the new Tags unfold adds a height tween and costs ~0.6–1 extra slow frame per run, which is the expected price of a height animation; I did not tune it further). The 1046 ms "before" outlier is a first-run compile hiccup.

Chromium 1440 on the VM

Chromium on this VM runs at a 50 ms p50 frame for both sides (software compositing path, ~20 fps floor), so its numbers prove only that the gestures ran: before p95 66–117 ms, after p95 96–100 ms; do not read them as performance.

Linux VMs (dev-01, dev-02) have no GPU; they ran the functional specs only.

PR #863 fixes this audit (head f2c3a44c, items 1–7; backdrop picture blur skipped and Sonner left for #836, see the PR). Frame numbers before vs after: ## Frame measurements, before vs after (Mac VM `macos-01-std`, real GPU, lock `/tmp/mac-bench.lock` held only while it ran) Before = origin/dev `55f35fcd`; after = PR head `f2c3a44c` (same tree as the tested one). Throwaway spec (not in the repo): real server, 3 seeded notes, 8 runs per gesture; each run records `requestAnimationFrame` deltas from just before the pointer click to 700 ms after it. "drops" = frames over 20 ms per run in that 700 ms window. Backend binary: older macOS debug build (`fix759b`), the same for both sides. ### WebKit 1440 (the meaningful one: 60 Hz, p50 17 ms) | gesture | frames in window (before → after) | p95 ms | worst frame ms | drops per run | |---|---|---|---|---| | sidebar hide (click) | 21 → 35 | 109 → 47 | 252 → 104 | 10.6 → 11.0 | | sidebar show (click) | 19 → 36 | 132 → 45 | 224 → 76 | 10.1 → 11.5 | | sheet open (Insert) | 40 → 43 | 31 → 32 | 1046 → 87 | 3.4 → 4.1 | | sheet close (outside click) | 44 → 42 | 32 → 29 | 116 → 301 | 3.4 → 3.3 | | list → note | 45 → 43 | 23 → 28 | 186 → 282 | 3.4 → 3.5 | | Tags fold (no motion before → new unfold) | 45 → 44 | 25 → 29 | 77 → 163 | 3.0 → 3.6 | | Tags unfold | 44 → 45 | 25 → 30 | 313 → 216 | 2.8 → 3.8 | Reading: the layout-heavy gestures (sidebar) were the ones the 556 ms spring hurt: the whole window now runs at p50 17 ms with p95 halved (109 → 47, 132 → 45). Sheet, list → note and Tags are within noise of before (one stray 100–300 ms frame per eight runs on either side; these are single-frame outliers, not sustained drops; the new Tags unfold adds a height tween and costs ~0.6–1 extra slow frame per run, which is the expected price of a height animation; I did not tune it further). The 1046 ms "before" outlier is a first-run compile hiccup. ### Chromium 1440 on the VM Chromium on this VM runs at a 50 ms p50 frame for both sides (software compositing path, ~20 fps floor), so its numbers prove only that the gestures ran: before p95 66–117 ms, after p95 96–100 ms; do not read them as performance. Linux VMs (dev-01, dev-02) have no GPU; they ran the functional specs only.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#859
No description provided.