Hero: no pause on hover, slow zoom on the first photo #22

Merged
Sluijsens merged 2 commits from feature/hero-full-slider into master 2026-11-17 11:17:48 +01:00
Owner

Two changes to the hero slider (follow-up of the hero module, decisions of Bryan 2026-11-17).

  1. No pause on mouse hover any more. Kept: the pause button (WCAG 2.2.2), no autoplay with prefers-reduced-motion, pause while the tab is hidden, pause while keyboard focus is on the controls. A click on an arrow and a swipe do not pause.
  2. The first photo now has the same slow zoom as the others, without replacing the plain HTML: the plain HTML is painted at scale 1.06 and the slider zooms it out to 1 over 9 s after hydration. Same first frame before and after hydration, and the photo is the same DOM node, so the LCP does not wait for hydration.

Measured on ASF-test (Lighthouse mobile, 5 runs, median), master run 118 versus this branch (run 119):

  • score 0.78 -> 0.79
  • LCP 4829 ms -> 4682 ms (element: the hero title, both)
  • CLS 0.0017 -> 0.0017
  • TBT 181 ms -> 98 ms

Visual check on ASF-test with Playwright (desktop 1280 and mobile 390, mouse over the hero on desktop): the scale goes 1.058 -> 1.045 (2 s) -> 1.025 (5 s), the slider advances on its own with the pointer over it.

Assumptions 15 and 16 are in aidlc-docs/features/hero-module/assumptions-and-open-questions.md.

Two changes to the hero slider (follow-up of the hero module, decisions of Bryan 2026-11-17). 1. No pause on mouse hover any more. Kept: the pause button (WCAG 2.2.2), no autoplay with prefers-reduced-motion, pause while the tab is hidden, pause while keyboard focus is on the controls. A click on an arrow and a swipe do not pause. 2. The first photo now has the same slow zoom as the others, without replacing the plain HTML: the plain HTML is painted at scale 1.06 and the slider zooms it out to 1 over 9 s after hydration. Same first frame before and after hydration, and the photo is the same DOM node, so the LCP does not wait for hydration. Measured on ASF-test (Lighthouse mobile, 5 runs, median), master run 118 versus this branch (run 119): - score 0.78 -> 0.79 - LCP 4829 ms -> 4682 ms (element: the hero title, both) - CLS 0.0017 -> 0.0017 - TBT 181 ms -> 98 ms Visual check on ASF-test with Playwright (desktop 1280 and mobile 390, mouse over the hero on desktop): the scale goes 1.058 -> 1.045 (2 s) -> 1.025 (5 s), the slider advances on its own with the pointer over it. Assumptions 15 and 16 are in aidlc-docs/features/hero-module/assumptions-and-open-questions.md.
Sluijsens added 2 commits 2026-11-17 11:06:25 +01:00
The pause button, reduced motion, hidden tab and keyboard focus on the
controls still pause.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Hero: slow zoom on the first photo without replacing the plain HTML
Continuous Integration / check (pull_request) Successful in 1m57s
Continuous Integration / build-test (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 9m0s
Continuous Integration / deploy-production (pull_request) Skipped
8050072ce5
The plain HTML is painted at scale 1.06 and the slider zooms it out to 1
after hydration, like the other photos: same first frame (no CLS), and the
LCP does not wait for hydration. Assumptions 15 and 16 recorded.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sluijsens merged commit 440a298cc7 into master 2026-11-17 11:17:48 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SLP_Software/AndreaSlopFotografie#22