Skip to content

feat: add prefers-reduced-motion media query support (#2415)#2432

Closed
pradeep0153 wants to merge 1 commit into
janavipandole:mainfrom
pradeep0153:feature/prefers-reduced-motion
Closed

feat: add prefers-reduced-motion media query support (#2415)#2432
pradeep0153 wants to merge 1 commit into
janavipandole:mainfrom
pradeep0153:feature/prefers-reduced-motion

Conversation

@pradeep0153

Copy link
Copy Markdown
Contributor

Fixes #2415.

Description

This PR introduces vital accessibility improvements by implementing global support for the prefers-reduced-motion media query. The framework now automatically detects if a user has enabled reduced motion at the OS-level and safely neutralizes heavy animations, ensuring full compliance with WCAG accessibility standards regarding motion and vestibular triggers.

Key Changes

  • Added a global @media (prefers-reduced-motion: reduce) block to instantly disable or minimize all CSS animations and transitions framework-wide.
  • Applied properties like animation-duration: 0.01ms !important; and transition-duration: 0.01ms !important; to respect the user's preference without breaking critical JavaScript listeners that rely on animationend or transitionend events firing.

@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

@pradeep0153 is attempting to deploy a commit to the janavipandole's projects Team on Vercel.

A member of the Team first needs to authorize it.

@janavipandole

Copy link
Copy Markdown
Owner

resolve

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add built-in support for prefers-reduced-motion media query

2 participants