Skip to content

Motion: one global reduced-motion rule for the v1 animations - #334

Merged
wab merged 7 commits into
mainfrom
cc/316-reduced-motion-ce51a3
Nov 17, 2026
Merged

wab merged 7 commits into
mainfrom
cc/316-reduced-motion-ce51a3

Conversation

@wab

@wab wab commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Closes #316

What

  • preset/global-css.ts: one global rule under prefers-reduced-motion: reduce. Animations last 0ms with no delay and run once; transitions are instant. Entrance animations (all forwards fill) show their end frame at once, so content that starts at opacity: 0 still shows. Loops rest on the element's own style. Transition delays are kept: a delay moves nothing, and the page dimming on navigation (app/routes/_main.tsx) relies on one to skip fast loads.
  • The rule is !important in @layer base, which beats the atomic utilities, recipes and inline style delays.
  • Opt-out: an element that sets its own reduced motion behaviour carries data-motion-own (the element only, not its children). The navbar panel uses it to keep its opacity fade.
  • ClientCarousel (customer stories): framer-motion loop, out of reach of CSS. It now reads usePrefersReducedMotion and stands still.
  • About us illustration: the floating cursor rests on its first frame under reduced motion. Without it, the SVG transform attributes applied and the arrow was clipped.
  • slide and scaleProgress keyframes deleted (unused).

Components that already handled reduced motion (Reveal, useInView, Tabs, Revenue AI thesis, stack diagram, bow tie, home hero timeline) resolve to animation: none or an instant duration already, so they behave the same.

Reduced motion off: no change

Generated styles.css diffed against main: the only differences are the new media block and the two deleted keyframes.

Verification

  • pnpm check, pnpm typecheck, pnpm test:run (88 files, 1248 tests) green.
  • Local dev server, every (prefers-reduced-motion: reduce) media rule switched to all in the page (the browser pane cannot emulate the media feature). Infinite CSS animations before, running animations after:
    • home 7 to 0, method 6 to 0, studio 2 to 0, technology 1 to 0, offer 2 to 0, about us 3 to 0, challenge revenue-ai 0 to 0.
    • no element in main left at opacity: 0 on any of these pages.
  • Not verified live: the framer-motion carousel on /clients (the hidden browser pane froze requestAnimationFrame). Checked by code review: hook order, SSR, live toggle. To check on the preview with OS reduced motion on.

Pages to review on the Vercel preview (ADR 0002)

This PR changes preset/. With reduced motion off nothing changes. With reduced motion on, these non-redesigned pages can change: offer (grid float, entrance pops, hero bounce), customer stories (logo carousel, radar illustration), about us (illustration), technology, method (v1 parts), blog, legal and contact (hover transitions become instant). The J1 route checklist has a new line for it.

Known limits, deferred to J5

  • Marquees under reduced motion stand still with overflow: hidden, so logos past the viewport are not visible (home/client-marquee.tsx, ClientCarousel.tsx). studio/studio-marquee.tsx shows the wrap pattern to reuse.
  • About us slow-fade rect rests at opacity 1 instead of its 0.1 to 0.85 range.

wab added 7 commits November 17, 2026 09:19
Under prefers-reduced-motion: reduce, every animation jumps to its end
frame and every transition is instant. Entrance animations that start at
opacity 0 still show their content. The rule is !important in the base
layer so it wins over the atomic utilities.

Refs #316
The carousel loops through framer-motion, which the CSS rule cannot
reach. Under reduced motion the logos stand at their start position.

Refs #316
Review findings on the global rule. A zero transition delay made the
page dim to 25% on every client navigation, so delays stay: they move
nothing. An element that sets its own reduced motion behaviour opts out
with data-motion-own; the navbar panel uses it to keep its fade.

Refs #316
Without the float-cursor loop, the SVG transform attributes applied and
the arrow was clipped at the bottom of the illustration.

Refs #316
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Nov 17, 2026 8:40am UTC

Request Review

@wab
wab merged commit ba3bbd5 into main Nov 17, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — cd0f9dcd Deployed Nov 17, 2026 by vercel[bot]
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.

Motion: one global reduced-motion rule for the v1 animations

1 participant