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

prefers-reduced-motion props #152

Open
flavienbonvin opened this issue Feb 2, 2023 · 0 comments
Open

prefers-reduced-motion props #152

flavienbonvin opened this issue Feb 2, 2023 · 0 comments

Comments

@flavienbonvin
Copy link

Currently, animations are played regardless of the prefers-reduced-motion preferences. This can be an issue when working on accessibility.

Having a prop on the useRive hook that would control how the animation behaves when prefers-reduced-motion is true would be great. Besides, it could be great to define a frame or a fallback image when prefers-reduced-motion is true. This way it would be possible to display the first or last image or have a fallback image instead.

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

No branches or pull requests

2 participants