Skip to content

S453 hotfix: nothing on Home follows the scroll, so nothing stops half way - #71

Merged
Preston2012 merged 2 commits into
mainfrom
claude/home-ios-fix-s453
Nov 29, 2026
Merged

Preston2012 merged 2 commits into
mainfrom
claude/home-ios-fix-s453

Conversation

@Preston2012

Copy link
Copy Markdown
Owner

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()).

  • If you stop scrolling inside an animation's range, the piece stays halfway in.
  • On an iPhone, the toolbar and the text size stretch those ranges. The last questions ended up sitting mid-screen, half in.
  • The ranges were recomputed on every scroll frame over clip-paths, filters, 3D swings and a playing video. That's the stutter.

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

  • A watched element must not start out moved or clipped, or its own observer never sees it arrive. The build row started 78vw to the side. Chromium also counts an element's own clip-path, so a headline clipped shut never arrived.
  • Card art now re-checks when an entrance ends.

Checked

  • iPhone 13 and iPhone SE (WebKit) and Pixel 7 (Chromium): stopped every 360px down the whole page and waited. Zero pieces were left partway, the hero is whole again back at the top, and there are no errors.
  • Stall walks at 6 widths in WebKit, Chromium and Firefox: no overflow.
  • Gate:
    • Home 91 and /work 91 for speed; accessibility, best practices and SEO all 100.
    • /about scores 89, the same as live. Its slowness was already there and gets fixed in its own turn.

Not checked yet: a real iPhone. That check is Preston's.

🤖 Generated with Claude Code

https://claude.ai/code/session_019pW3TKYLNex9ZSDBVNuynE

…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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T05:04:18.483045Z 3a3791d PR opened
🔒 Security Review ✅ Completed 2026-11-29T05:05:07.201005Z 3a3791d PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/pages/index.astro
Comment on lines +71 to +72
if (e.intersectionRatio < 0.35) hero.classList.add('hh-out');
else if (e.intersectionRatio > 0.6) hero.classList.remove('hh-out');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@Preston2012
Preston2012 merged commit ff55720 into main Nov 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants