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

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>
This commit is contained in:
2026-11-17 10:31:22 +01:00
co-authored by Claude Sonnet 5.5
parent 20806692bb
commit 8050072ce5
4 changed files with 59 additions and 19 deletions
+14
View File
@@ -55,6 +55,20 @@ const config = defineConfig({
width: '100%',
height: '100%',
objectFit: 'cover',
// Same slow zoom as the other photos of the slider: the plain HTML
// is painted at 1.06 and the slider (after hydration) sets
// data-zoom on the picture, which zooms out to 1 over 9 s. The
// photo itself is never replaced, so the LCP does not wait for
// hydration; the first frame is the same before and after it.
transform: 'scale(1.06)',
transition: 'transform 9s linear',
'@media (prefers-reduced-motion: reduce)': {
transform: 'none',
transition: 'none',
},
},
'.cms-hero-picture[data-zoom] .cms-hero-image': {
transform: 'scale(1)',
},
'.cms-hero-title': {
position: 'relative',