So, I did mine quite similar but slightly different using background-color for my use case. But, I think there's a slight tweak for the reduced motion that's worth pointing out:
The update: slow is 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:
Nice post!
So, I did mine quite similar but slightly different using
background-color
for my use case. But, I think there's a slight tweak for the reduced motion that's worth pointing out:The
update: slow
is 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-...