Discover how the Interface Segregation Principle (ISP) keeps your code lean, modular, and maintainable using real-world analogies and practical examples.
<selectedcontent>
element improves dropdowns
is an experimental HTML element that gives developers control over how a selected option is displayed, using just HTML and CSS.
Learn how to implement an advanced caching layer in a Node.js app using Valkey, a high-performance, Redis-compatible in-memory datastore.
Learn how to properly handle rejected promises in TypeScript using Angular, with tips for retry logic, typed results, and avoiding unhandled exceptions.
5 Replies to "New media queries you need to know"
These sound good but how good will they actually be in practice? For example, I don’t have any problems with animations (things can fade in or slide in and it does not bother me), but I absolutely hate repeating animated GIFs or animations. I have to attempt to scroll them off the screen or cover them up with my hand to be able to read the surrounding content. Setting prefers-reduced-motion is an all or nothing proposition. I have to lose all animation to turn off the things that actually bother me. And how does one set these preferences? How many users know that they have to go into their OS settings and turn off all animations (at least on Windows) to set prefers-reduced-motion? I guess we will see once they go into common use.
I hear what you’re saying, I can definitely see the light-level and prefers-reduced-data media queries as being very cool features in the long-run
You really missed forced-colors here. It’s the “extrem” Dark mode for people the eye sight issues.
Hello, Kristofer Selbekk
My name is Richie Pu, a Web UI developer from Tencent Game Platform and Publish Design Center (short for P&P Design) .
we volunteer to run a site in Wechat which other designers in China can subscribe it to get the latest news or articles about the Game Design.
When we read the article “New media queries you need to know” , we think it should also be read by Chinese Designer & Web Developer. However we have to translate the English version to Chinese firstly by ourselves. This why we send you an E-mail to ask your permission of the translation right here.
Any question can reply to me. Hope to hear your voice.
Thank you!
Hi Richie, LogRocket editor here. Thanks for the love. For now, our policy is that we do not approve translations on third-party sites.