Skip to content

fix(registry): respect reduced motion in marquee, meteors, orbiting circles, ripple, shimmer button - #1119

Open
yashjaiswal2818 wants to merge 1 commit into
magicuidesign:mainfrom
yashjaiswal2818:fix/reduced-motion-css-effects
Open

yashjaiswal2818 wants to merge 1 commit into
magicuidesign:mainfrom
yashjaiswal2818:fix/reduced-motion-css-effects

Conversation

@yashjaiswal2818

Copy link
Copy Markdown
Contributor

Description

follow-up to #1111. marquee, meteors, orbiting circles, ripple and shimmer button loop forever and ignore the reduce motion setting. with it on they now hold still. with it off nothing changes.

Changes

all css, so no hydration issues this time:

  • marquee: motion-reduce:animate-none, so it sits at its first position
  • meteors: hidden. a frozen meteor is just a dot stuck at the top edge
  • orbiting circles: animation off, with the start position set in css. the icons only get their position from the animation, so turning it off alone puts them all in the middle
  • ripple: motion-reduce:animate-none
  • shimmer button: the spark layer is hidden. a frozen spark looks like a stuck glint
  • ran pnpm build:registry and committed the generated files

Motivation

these are the ones that move the most (scrolling, orbiting, falling, spinning). i left the gentler gradient and shine effects for another PR if you want them, and skipped FlickeringGrid and CoolMode since they already have open PRs.

one question on marquee: it now just sits there, so anything past the edge can't be reached. would you rather it become scrollable under reduce motion? happy to change it.

Breaking Changes

none. with reduce motion off everything behaves the same.

Screenshots

motion doesn't show up in a screenshot, so i checked behavior instead (macOS, Chrome). to reproduce: open the docs page for each component, then DevTools → Rendering → "Emulate CSS media feature prefers-reduced-motion" → reduce.

off reduce
marquee scrolls still
meteors fall hidden
orbiting circles orbit still, icons start exactly where the animation does
ripple pulses still
shimmer button spark slides no spark

Checklist

  • pnpm check passes locally
  • pnpm build passes locally
  • pnpm build:registry was run and the generated files are committed (if you changed registry/ or config/site.ts — CI verifies this on every PR)
  • PR title follows Conventional Commits (e.g., feat(marquee): add reverse prop)

@vercel

vercel Bot commented Dec 6, 2026

Copy link
Copy Markdown

@yashjaiswal2818 is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

1 participant