From b645a3429d61698dbaafd9999804c4d1aa3bf272 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 11 Oct 2026 08:15:26 +0000 Subject: [PATCH] fix: boot splash never freezes with arms missing A Tauri/WebKit window often reports document.hidden at first paint. Pausing grow-in there, with fill:both from opacity 0, left two arms invisible if visibilitychange never fired. Stay running until the page has been visible once. Paused and reduced-motion states drop the grow animations so the settled mark stays on screen. Co-Authored-By: Cursor Grok 4.6 Co-authored-by: tuckcode --- ...1-0815-cursor-grok-4-6-boot-splash-arms.md | 20 +++++ index.html | 35 ++++++-- src/components/BootSplash.css | 17 ++++ src/components/BootSplash.test.tsx | 47 ++++++++++ src/index.bootMotion.test.ts | 90 +++++++++++++++++++ 5 files changed, 204 insertions(+), 5 deletions(-) create mode 100644 docs/plans/handoffs/2026-10-11-0815-cursor-grok-4-6-boot-splash-arms.md create mode 100644 src/index.bootMotion.test.ts diff --git a/docs/plans/handoffs/2026-10-11-0815-cursor-grok-4-6-boot-splash-arms.md b/docs/plans/handoffs/2026-10-11-0815-cursor-grok-4-6-boot-splash-arms.md new file mode 100644 index 00000000..44872ea7 --- /dev/null +++ b/docs/plans/handoffs/2026-10-11-0815-cursor-grok-4-6-boot-splash-arms.md @@ -0,0 +1,20 @@ +--- +session: 2026-10-11T08:15Z +model: Cursor Grok 4.6 +description: >- + Boot splash no longer freezes two grow-in arms invisible when a + Tauri/WebKit window reports document.hidden at first paint. +commits: HEAD +--- + +**Origin:** Cursor Grok 4.6 · 2026-10-11 · boot splash frozen arms + +The HTML bootstrap set `--boot-motion-state: paused` whenever +`document.hidden` was true. Grow-in uses `animation-fill-mode: both` +from opacity 0, so a pause at frame 0 hid path 4–5 and circle 5–6. +A Mac Tauri window often starts hidden and may never fire +`visibilitychange` when shown. + +Fix: stay `running` until the page has been visible once; paused +state drops the grow animations so the settled mark stays on screen; +`prefers-reduced-motion: reduce` shows the full still logo. diff --git a/index.html b/index.html index 8e4cb18a..afb40066 100644 --- a/index.html +++ b/index.html @@ -227,20 +227,45 @@