-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add case for prefer-reduce-motion #4
Comments
I think this is a very good idea! 👍 But maybe change the default value of the Also, we should properly test this because disabling animations might break some event callbacks! |
I love the idea of using |
In some cases the transitionController is used for essential transitions (opening a menu e.g.) If we want to use transition controller for these types of animations we could perhaps opt for an alternative timeline. setupReducedTimelineIn or something like that |
I don't think this is needed, if you just set the |
I think it might be worth adding support for the
prefer-reduce-motion
media expression to disable animations if the user prefers not to see animations. We can add thepreferReduceMotion
property inside the second argument:What do you think about this implementation? I thought it would be nice to have support for such a feature in order to improve accessibility. I can create a PR for this.
The text was updated successfully, but these errors were encountered: