Repository navigation
S453 hotfix: nothing on Home follows the scroll, so nothing stops half way - #71
Conversation
…f way Preston, 2026-11-28 20:22 and 20:25, on his mom's iPhone: the starting point block "was stuttering", and the questions "frozen half way in the animation". Then: "Did you run and optimize on Safari too? Every platform should get max effort!" Cause. Every Home entrance was tied to the scroll (animation-timeline: view()), so a piece's progress was the scroll position. Stop scrolling inside its range and it stays half in. On an iPhone the toolbar and text size stretch the ranges: the question list's last items sat mid-screen, half filed. And the ranges were recomputed every scroll frame over clip-paths, filters, 3D swings and a playing video, which is the stutter. Now each piece plays once, start to finish, when it arrives (lib/in-view), in reading order: headline and eyebrow on their own arrival, then the doors deal, the drawer rises, the build cards sweep and swing, the quote inks word by word, the values stamp, the photo develops, the questions file in. A piece the reader landed on shows finished. The hero's exit is two states (out when it is mostly scrolled away, back at the top), one short transition each way, never tied to the scroll. The page is armed before first paint for a reader who opened it at the top, with a 3 second fail-safe. Two traps found on the way, both fixed: a watched element must not start moved or clipped, because its own observer then never sees it arrive (the build row started 78vw to the side; Chromium also counts a target's own clip-path, so a clipped-shut headline never arrived). And card art now re-checks when an entrance ends (lib/fully-in-view), as on the Work branch. Checked: iPhone 13 and iPhone SE (WebKit) and Pixel 7 (Chromium), stopping every 360px down the whole page and waiting: zero pieces left part way, the hero whole again back at the top, no errors. Arrival times measured per section. Not yet checked on a real iPhone: that one is Preston's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019pW3TKYLNex9ZSDBVNuynE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019pW3TKYLNex9ZSDBVNuynE
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3a3791d30c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (e.intersectionRatio < 0.35) hero.classList.add('hh-out'); | ||
| else if (e.intersectionRatio > 0.6) hero.classList.remove('hh-out'); |
There was a problem hiding this comment.
Make the hero's return threshold reachable on short viewports
On a short viewport, such as a landscape phone, or with enlarged text, the hero can be taller than the viewport divided by 0.6. Its intersection ratio then never exceeds 0.6, even at the very top of the page. After scrolling down sets hh-out, returning to the top cannot remove it, leaving the headline, copy, and buttons permanently at 25% opacity and shifted upward by the new .hh.hh-out .hh-inner rule. Base the return condition on the hero's position or normalize against its maximum visible area rather than requiring 60% of the entire section to be visible.
Useful? React with 👍 / 👎.
What Preston saw: on his mom's iPhone, the starting-point block stuttered and the questions froze halfway into their animation.
Cause: every Home entrance was tied to the scroll position (
animation-timeline: view()).Fix: each piece now plays once, start to finish, when it arrives, in reading order. A piece the reader landed on directly shows finished. The hero's exit has two states, out and back, with one short transition each way. Same looks as before, and nothing can stop halfway.
Two traps found and fixed along the way
Checked
Not checked yet: a real iPhone. That check is Preston's.
🤖 Generated with Claude Code
https://claude.ai/code/session_019pW3TKYLNex9ZSDBVNuynE