justmarkup.com justmarkup.com

Adapting to user preferences

Over the last years, browsers implemented various features to react to user preferences on the web using CSS, JavaScript or by checking for preferences on the server-side. In this article, I would like to show which user preferences are currently exposed by browsers, the best way to handle them and a look in to the future to see what might be available soon. Reduced Motion # Let’s start with the prefers-reduced-motion media query. It...

justmarkup.com justmarkup.com

Adapting to user preferences

Over the last years, browsers implemented various features to react to user preferences on the web using CSS, JavaScript or by checking for preferences on the server-side. In this article, I would like to show which user preferences are currently exposed by browsers, the best way to handle them and a look in to the future to see what might be available soon. Reduced Motion Let’s start with the prefers-reduced-motion media query. It...