Repository navigation
fix(registry): respect reduced motion in marquee, meteors, orbiting circles, ripple, shimmer button - #1119
Open
yashjaiswal2818 wants to merge 1 commit into
Conversation
…ircles, ripple, shimmer button
|
@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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
motion-reduce:animate-none, so it sits at its first positionmotion-reduce:animate-nonepnpm build:registryand committed the generated filesMotivation
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.
Checklist
pnpm checkpasses locallypnpm buildpasses locallypnpm build:registrywas run and the generated files are committed (if you changedregistry/orconfig/site.ts— CI verifies this on every PR)feat(marquee): add reverse prop)