⚠️ Motion Warning: The Glitch page preview contains animated elements.
The CSS animation property makes it possible to create simple UI animati...
For further actions, you may consider blocking this person and/or reporting abuse
Nice post!
So, I did mine quite similar but slightly different using
background-colorfor my use case. But, I think there's a slight tweak for the reduced motion that's worth pointing out:The
update: slowis for devices that cannot handle the animation (smashingmagazine.com/2021/10/respe... aka targeting a screen with a low refresh rate.And the alternative to full removal of the animation is talked about here:
css-tricks.com/revisiting-prefers-...
Great post, I didn't know about the media query for reduced motion or even to consider this as an accessibility concern, good to know!
Glad it helped! I'd normally just put that media query in the global CSS with the universal selector
*and override if needed.