Skip to content

feat(ally) : add prefers-reduced-motion support#631

Open
prince-pokharna wants to merge 1 commit into
devpathindcommunity-india:masterfrom
prince-pokharna:feat/reduced-motion-support
Open

feat(ally) : add prefers-reduced-motion support#631
prince-pokharna wants to merge 1 commit into
devpathindcommunity-india:masterfrom
prince-pokharna:feat/reduced-motion-support

Conversation

@prince-pokharna

@prince-pokharna prince-pokharna commented Jun 16, 2026

Copy link
Copy Markdown

Summary

This PR adds support for the user's OS-level prefers-reduced-motion accessibility setting.

Changes Made

  • Added global Framer Motion support using MotionConfig reducedMotion="user" in the root layout.
  • Added centralized motion utilities in src/utils/motionPreferences.ts.
  • Added reusable useReducedMotion hook in src/hooks/useReducedMotion.ts.
  • Added CSS fallback for prefers-reduced-motion in globals.css.
  • Updated page transitions to use reduced-motion-friendly behavior.
  • Audited existing animated components and confirmed reduced-motion handling where already implemented.

Accessibility Impact

  • Respects OS-level reduced motion preferences.
  • Reduces transform-heavy animations.
  • Preserves essential UI feedback.
  • Improves alignment with WCAG 2.3.3 (Animation from Interactions).

Notes

  • Audited GSAP usage in the repository and found no active GSAP animation implementations requiring gsap.matchMedia() integration at this time.

Related Issue

Closes #611

Changes Made

  • Added MotionConfig reducedMotion="user"
  • Added motionPreferences utility
  • Added useReducedMotion hook
  • Added CSS fallback for prefers-reduced-motion
  • Updated PageTransition animation behavior

Accessibility

Implements support for OS-level prefers-reduced-motion settings in accordance with WCAG 2.3.3.

@prince-pokharna

Copy link
Copy Markdown
Author

Hi maintainers,

I've submitted a PR implementing support for prefers-reduced-motion accessibility preferences.

Changes include:

  • Global Framer Motion support via MotionConfig reducedMotion="user"
  • Reusable reduced-motion utilities and hook
  • CSS fallback for reduced-motion users
  • Reduced-motion-friendly page transitions
  • Audit of existing animated components

Looking forward to your review. Thanks!

@Aditya948351 Aditya948351 self-requested a review June 16, 2026 15:11
@prince-pokharna prince-pokharna force-pushed the feat/reduced-motion-support branch from b530327 to fbcf8f0 Compare June 16, 2026 17:55
@prince-pokharna prince-pokharna force-pushed the feat/reduced-motion-support branch from fbcf8f0 to 4dd826a Compare June 16, 2026 17:58
@devpathindcommunity-india

Copy link
Copy Markdown
Owner

@prince-pokharna kindly link the issue

@github-actions github-actions Bot added gssoc26 This is a official GirlScript Summer of Code label. level:intermediate Intermediate level issues type:accessibility type:design type:feature labels Jun 17, 2026
@prince-pokharna

Copy link
Copy Markdown
Author

Closes #611

This PR implements support for prefers-reduced-motion accessibility preferences as discussed in the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 This is a official GirlScript Summer of Code label. level:intermediate Intermediate level issues type:accessibility type:design type:feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accessibility: Respect prefers-reduced-motion for Framer Motion / GSAP animations across the site

2 participants