Repository navigation
fix(web): stop the featured hero backdrop from panning - #4002
Conversation
The featured hero carousel slowly panned each slide's backdrop. The motion stutters in Firefox and adds movement users did not ask for. Slides now hold still and keep their crossfade and auto-advance. Removing the motion also removes the bookkeeping that kept a fading slide animated until its crossfade ended, and the second pan animation that only this hero used. Collection page heroes keep their pan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
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. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
Related issue: #3542
Validation tasks: none
The featured hero carousel on Home and on library Recommended pages slowly pans each slide's backdrop. In Firefox the pan stutters, and for people sensitive to motion it's movement on every page load that they can't turn off. #3542 asked to remove or limit the animation. After it closed, a commenter reported that Firefox still stutters and questioned whether the effect adds anything. This change removes the backdrop motion from the featured hero. Slides still crossfade and auto-advance.
Approach
HeroBannerno longer animates its backdrops. Without the motion, the code that kept a fading slide animated until its crossfade finished has no purpose, so it's gone too, and the active slide is now a single index.app.cssdrops the second pan animation, which only this hero used. Collection page heroes keep their pan; that surface is out of scope here.One loading detail changes. When you switch slides, the outgoing slide no longer keeps requesting its backdrop for the length of the fade. This only matters if that image hadn't finished loading, in which case it was invisible during the fade anyway. A loaded backdrop is retained as before. Reduced-motion users already got this behavior.
Validation
make test-web: pass. Motion-specificHeroBannertests were removed along with the behavior they covered.make verify-size-ratchet,make verify-bidi,make verify-local-paths: pass.mainwith this branch. Before: the active backdrop runsken-burns-a, and 14–18% of hero pixels change over 4 seconds on one slide. After: no animation, and under 0.1% of pixels change. Crossfade and auto-advance still work.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-4002/
Surface and build: web app, library Recommended page (same
HeroBanneras Home), desktop and phone width; before ismainat 2ee1b72, after is this branch.Risks
None identified. Web only; no API or client contract change.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Stop Ken Burns panning on featured hero backdrop slides
ken-burns-bkeyframes,--animate-ken-burns-btoken, and its reduced-motion override from app.css; the backdrop now uses only theken-burns-adrift with a 3%-a-side overscanHeroBackdropSlidein HeroBanner.tsx: no per-slide animation style, slide indices, orwill-change-transformhint. Navigation changes only the active index, and outgoing-slide tracking, fade timers, and related cleanup are goneMacroscope summarized f5274a4.