Interesting - I definitely didn't know that prefers-reduced-motion was a thing before this. I also like how you set data-user-reduced-motion via JS in order to control CSS - I'm sure I'll use that trick in the future. Thanks!
I'm a self-taught Front End & JS Dev and professional learner with accessibility expertise. I'm passionate about breaking down concepts into relatable concepts, making it more approachable.
Interesting - I definitely didn't know that
prefers-reduced-motion
was a thing before this. I also like how you setdata-user-reduced-motion
via JS in order to control CSS - I'm sure I'll use that trick in the future. Thanks!Thanks Chris! Andy (mentioned in the post) inspired me to do that!