Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] animate() automatically disables all transform & layout animations when device has "reduced motion" preference #2771

Open
pedroalmeida415 opened this issue Aug 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pedroalmeida415
Copy link

1. Read the FAQs 👇

2. Describe the bug
When the user’s device has reduced motion enabled, animations using the “animate()” function default to not animating properties related to movement at all, and the following message appears in the console:
You have Reduced Motion enabled on your device. Animations may not appear as expected. warnOnce @ warn-once.mjs:9

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/p/sandbox/bitter-meadow-8f8hrv

4. Steps to reproduce

  1. Enable reduced motion on your device
  2. Visit the codesandbox
  3. Notice how opacity animation works as intended, but the transform defaults to not animating at all

5. Expected behavior
It should be up to the developer which animations to turn off if reduced motion is detected. There’s even examples in the framer-motion documentation on how to do that.

6. Video or screenshots
N/A

7. Environment details
Enable reduced motion according to your system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant