Running CSS animations only if both the device and the user allow it
Thanks to Chrome release notes, I discovered today that there is an update
media feature which accepts values fast
, slow
and print
, to set styles depending on the ability of the device to update the rendering and the speed of it. As I'm already respecting the user's preference with the prefers-reduced-motion
media feature, I wondered how I could progressively enhance this with the new media feature.