Skip to content

Run the landing backdrop when the OS asks for reduced motion - #36

Merged
valuecodes merged 1 commit into
mainfrom
feat/backdrop-reduced-motion
Oct 12, 2026
Merged

valuecodes merged 1 commit into
mainfrom
feat/backdrop-reduced-motion

Conversation

@valuecodes

Copy link
Copy Markdown
Owner

What

  • On desktop the landing page showed a still black page: when the browser reported prefers-reduced-motion: reduce (for example with Windows "Animation effects" turned off), the drifting demo-world backdrop was skipped entirely. Phones rarely set this, so mobile worked.
  • The backdrop now runs whenever WebGL2 is available. The reduced-motion check is removed from supportsBackdrop and backdropAllowed.
  • The test and apps/web/AGENTS.md are updated to match.

How to test

pnpm typecheck
pnpm lint
pnpm test
pnpm --filter web dev

Then turn on reduced motion (DevTools → Rendering → Emulate CSS media feature prefers-reduced-motion: reduce) and confirm the backdrop drifts behind the landing panel.

Security review

No security-impacting changes.

🤖 Generated with Claude Code

Desktops with OS animation effects off reported reduced motion, so the landing page showed no backdrop there while phones did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings October 12, 2026 13:10

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T13:12:06.853379Z 0b05151 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: 0b05151fdc

ℹ️ 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 apps/web/src/landing.tsx
Comment on lines 42 to +45
const probe = document.createElement("canvas").getContext("webgl2");
// Hand the probe's context back now rather than when it is collected.
probe?.getExtension("WEBGL_lose_context")?.loseContext();
return backdropAllowed({ webgl2: probe !== null, reducedMotion });
return backdropAllowed({ webgl2: probe !== null });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Honor the reduced-motion preference for the drifting camera

When prefers-reduced-motion: reduce is set, this now enables the same continuously walking and swaying DriftCamera used for every other visitor. That preference is commonly enabled specifically to avoid vestibular-triggering animation, and this full-screen first-person motion is especially likely to cause discomfort. Keep checking the preference and either omit the backdrop or render it with a stationary camera rather than ignoring the request.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Intentional: desktops with OS animation effects off reported reduced motion, which hid the landing backdrop entirely. The product decision is to always animate it.

@valuecodes
valuecodes merged commit ef4dfe1 into main Oct 12, 2026
10 checks passed
@valuecodes
valuecodes deleted the feat/backdrop-reduced-motion branch October 12, 2026 19:01
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