awesome-reveal / react-awesome-reveal

React components to add reveal animations using the Intersection Observer API and CSS Animations.
https://react-awesome-reveal.morello.dev
MIT License
1.15k stars 43 forks source link

Add support for prefers-reduced-motion #185

Closed rickyhaswifi closed 1 year ago

rickyhaswifi commented 1 year ago

Can we get support for when a user has 'prefers-reduced-motion' on their machine as a prop

<Fade prefersReducedMotion // optional boolean

Maybe it can just return child elements as if it were a fragment or a div.

Thank you!

hckhanh commented 1 year ago

I think it's applied to global styles: https://github.com/search?q=repo%3Amorellodev%2Freact-awesome-reveal%20reduce&type=code

morellodev commented 1 year ago

It is already implemented, closing this