Skip to content

docs: walkthrough starts when it scrolls into view, also on phones - #346

Merged
ChristopherPHolder merged 1 commit into
mainfrom
docs/walkthrough-autostart
Nov 8, 2026
Merged

ChristopherPHolder merged 1 commit into
mainfrom
docs/walkthrough-autostart

Conversation

@ChristopherPHolder

@ChristopherPHolder ChristopherPHolder commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The landing page walkthrough did not reliably start on phones. Two causes, both fixed:

  • Autoplay waited for 35% of the section to be on screen. The timer only counted time while the IntersectionObserver reported that share of the whole section visible. On a phone the section is a few screens tall, so on short viewports or with larger text that share is never reached and the steps never advance, while the CSS progress bar still fills. Visibility is now "any part of the walkthrough is in the middle half of the viewport", which works for any section height.
  • The first step had already played by the time a reader got there. The collect step's browser animation and the progress bar started at page load, not when the walkthrough came into view. Scrolling down showed a finished launch screen and a full bar that sat still for a few seconds. The stage now holds every animation at its first frame (stage-idle) until the walkthrough first scrolls into view, then plays from the beginning in sync with the step timer. Reduced-motion readers skip the idle state as before.

Desktop, dark

Walkthrough playing on desktop in dark mode

Full-quality MP4

Desktop, light

Walkthrough playing on desktop

Full-quality MP4

Mobile

Walkthrough playing on a phone

Full-quality MP4

Testing

  • Production build served statically, headless Chrome at 1280×800 (light and dark, mouse) and 390×844 with touch (dark): the stage is idle before scrolling, leaves idle once the walkthrough is scrolled into view, and cycles through all five steps in both views. The recordings above come from those runs.
  • nx lint docs passes.

The walkthrough only counted time while 35% of the section was on screen.
A phone shows the section a screen at a time, so on short viewports or
with large text that share is never reached and the steps never advance.
Visibility is now any part of the section in the middle half of the
viewport.

The first step's browser animation and progress bar also started at page
load, so by the time a reader scrolled down they had already finished and
nothing moved for a few seconds. The stage now holds every animation at
its first frame until the walkthrough first comes into view.
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

❗❗❗ report generated by this PR ❗❗❗

☕ Order Coffee ☕

Date/Time: 2026-11-08 08:48

Step Name Gather Mode Performance Accessibility Best Practices Seo Agentic Browsing
🧭 Navigate to coffee cart navigation 84 93 100 83 50
☕ Select coffee timespan 17/17 - 8/8 - -
✔ Coffee selected snapshot Ø 1/1 16/18 4/4 3/5 1/3
🛒 Checkout order timespan 19/19 - 8/8 - -
🧾 Order checked out snapshot Ø 1/1 19/20 4/4 3/5 1/3
💌 Submit order timespan 18/18 - 8/8 - -
📧 Order submitted snapshot Ø 1/1 20/22 4/4 3/5 1/3
🧭 Navigate to github navigation 100 92 100 83 50

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

☕ Order Coffee ☕

Date/Time: 2026-11-08 08:48

Step Name Gather Mode Performance Accessibility Best Practices Seo Agentic Browsing
🧭 Navigate to coffee cart navigation 94 93 100 83 50
☕ Select coffee timespan 17/17 - 8/8 - -
✔ Coffee selected snapshot Ø 1/1 16/18 4/4 3/5 1/3
🛒 Checkout order timespan 19/19 - 8/8 - -
🧾 Order checked out snapshot Ø 1/1 19/20 4/4 3/5 1/3
💌 Submit order timespan 18/18 - 8/8 - -
📧 Order submitted snapshot Ø 1/1 20/22 4/4 3/5 1/3
🧭 Navigate to github navigation 97 92 100 83 50

@ChristopherPHolder
ChristopherPHolder merged commit 1f8a053 into main Nov 8, 2026
5 checks passed
@ChristopherPHolder
ChristopherPHolder deleted the docs/walkthrough-autostart branch November 8, 2026 09:21
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.

1 participant