Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Accessibility - prefers-reduced-motion (being nice to people)
My recurring problems with dizziness and vertigo reminded me, it would probably be a good idea to check the animations in Hive admin theme and reduce them using the prefers-reduced-motion
MQ. Users who have turned this on on their device would automatically get less or no animations (and transitions).
In Hive admin theme (and derivates), the main one is that jumping of and on message pane at the bottom of the page.
I once linked to an Alistapart article, here is a CSS Tricks article.
Support is good.
(curiously the macOS animations, e.g. the sliding in of notifications, don’t annoy me that much. But that is just me. On websites it sometimes helps – the few sites that actually bother with that kind of things. Luckily Apple.com does it, or the marketing pages for the Airpods pro and Mac Pro who be completely unusable for me.
@media screen and (prefers-reduced-motion: reduce), (update: slow) {
* {
animation-duration: 0.001ms !important;
transition-duration: 0.001ms !important;
}
}
(that is a bit sledgehammer approach, but you get the idea)
PS – on macOS: System Preferences > Accessibility > Vision > Display; on iOS it is under Settings > Accessibility > Motion. Someone else will have chime in with the Windows settings, I forgot them right now (and Android).
˙
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: Accessibility - prefers-reduced-motion (being nice to people)
I’ll add this to the admin theme(s) now. Will post back when it’s in dev branch.
Offline
Re: Accessibility - prefers-reduced-motion (being nice to people)
OK, done this in dev branch – let me know how it works out.
Offline
Re: Accessibility - prefers-reduced-motion (being nice to people)
Thank you. i‘ll have a look tomorrow morning.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: Accessibility - prefers-reduced-motion (being nice to people)
I actually targeted the elements directly that had transitions/animations – but the outcome should be the same.
Offline
Re: Accessibility - prefers-reduced-motion (being nice to people)
Fine!
This rule can be completed with an another property if the html
document is attached to scroll-behavior: smooth
:
scroll-behavior: auto !important;
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: Accessibility - prefers-reduced-motion (being nice to people)
Thank you, Just what the doctor suggested.
philwareham wrote #320323:
I actually targeted the elements directly that had transitions/animations – but the outcome should be the same.
Oh, definitely. The sample I posted is just that, a sample. Sometimes, sometimes a teeny bit of animation can actually help in accessibility for people with motion allergies.
Pat64 wrote #320331:
This rule can be completed with an another property if the
html
document is attached toscroll-behavior: smooth
:
Sure, many things can be enabled or disabled as needed, scroll-behaviour
is one high on the list of annoyances.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline