motiondivision / motion

A modern animation library for React and JavaScript
https://motion.dev
MIT License
25.66k stars 843 forks source link

[FEATURE] Add reducedMotion overrides to useAnimate #2837

Open dmrobbins03 opened 1 month ago

dmrobbins03 commented 1 month ago

Is your feature request related to a problem? Please describe. There is currently a great implementation of default and overridable reducedMotion behavior in MotionConfig and motion components. However, there are no similar parameters in useAnimate controls.

In building the reduced motion accessibility for my client, I have been unable to add certain interactivity due to Framer Motion's built in reducedMotion restrictions. We would greatly appreciate the ability to override these default settings in our components that require useAnimate.

Describe the solution you'd like I would like the same reducedMotion props available in motion components available to useAnimate control instances.

Describe alternatives you've considered I have tried to wrap the scope of a useAnimate instance in a MotionConfig but that does not work. I had a brief conversation about this with you on x.com.