-
I know this sounds awful, but hear me out: I have an unique situation where we have an app that has many internal products within it. Amazon Workspace users are all scoped to one of the products, and they all seem to all have animations turned off by default on their virtual Windows PC and dont even realize it (probably a sad reminder that many sites in the world already ignore this nice accessibility feature). I do want to strictly adhere to I know the users of Amazon Workspace are able-bodied and able-visioned because it's a requirement to the role. To be fair... I'm not certain that somebody doesn't get motion sickness seeing animations and that could be a negative consequence of this action. I'm just trying to tout the line between product reqs and accessbility and looking for some sort of solution. I thought that a less niche situation where this question is also relevant is for people who want to allow for in-app user preferences to control animations in an app or apps instead of the media query. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can add a custom variant using the same variant names - @custom-variant motion-safe {
@media (prefers-reduced-motion: no-preference) {
@slot;
}
&:where([data-ignore], [data-ignore] *) {
@slot;
}
}
@custom-variant motion-reduce {
@media (prefers-reduced-motion: reduce) {
@slot;
}
&:where([data-ignore], [data-ignore] *) {
@slot;
}
} |
Beta Was this translation helpful? Give feedback.
You can add a custom variant using the same variant names -
motion-safe
andmotion-reduce
- to override them. For example: