Skip to content

feat: implement global prefers-reduced-motion override #1390#1518

Merged
SAPTARSHI-coder merged 1 commit into
SAPTARSHI-coder:mainfrom
thakurakanksha288:main
Jun 5, 2026
Merged

feat: implement global prefers-reduced-motion override #1390#1518
SAPTARSHI-coder merged 1 commit into
SAPTARSHI-coder:mainfrom
thakurakanksha288:main

Conversation

@thakurakanksha288
Copy link
Copy Markdown
Contributor

Pull Request Summary
🚀 Overview
This PR implements native accessibility (a11y) handling for easemotion-css by introducing global support for the CSS @media (prefers-reduced-motion: reduce) media query. This ensures that users with vestibular disorders or motion sensitivities can safely browse sites using this library without triggering disorientation or vertigo.

🛠️ Changes Made
Implemented a zero-dependency, bulletproof CSS reset block inside the project's standardized submission tracking directory:

style.css: Added the core @media query block that intercepts system-level motion requests, instantly dropping transitions to 0s and safely fast-forwarding keyframe animations to their end state in 1ms (preserving any JavaScript animationend events).

demo.html: Created a high-intensity animation playground featuring a heavy bouncing/rotating box element to visually test the override.

README.md: Documented instructions on how to simulate and verify the reduced motion parameters via Browser DevTools.

📁 Submission Path
All files have been placed in the exact directory path requested by the automated workflow:
submissions/examples/prefers-reduced-motion/

🎯 Compliance
Aligns easemotion-css with WCAG 2.1 compliance guidelines, making the framework production-ready for corporate and enterprise open-source adoption.

Closes #1390

@SAPTARSHI-coder SAPTARSHI-coder added accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers GSSoC-26 Official GSSoC 2026 issue gssoc:approved Approved for GSSoC contributions integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement labels Jun 5, 2026
@SAPTARSHI-coder SAPTARSHI-coder merged commit 0713a96 into SAPTARSHI-coder:main Jun 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers gssoc:approved Approved for GSSoC contributions GSSoC-26 Official GSSoC 2026 issue integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Implement global accessibility (a11y) override using prefers-reduced-motion

2 participants