There is a code snippet that I see all the time when the media query prefers-reduced-motion is talked about. Here it is: @media (prefers-reduced-motion: reduce) {
- { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important;
…
No Motion Isn’t Always prefers-reduced-motion originally published on CSS-Tricks. You should get the newsletter and become a supporter.
https://css-tricks.com/nuking-motion-with-prefers-reduced-motion/
Autentifică-te pentru a adăuga comentarii
Alte posturi din acest grup
(This is a sponsored post.)
It’s probably no surprise to you that CSS-Tricks is (proudly) hosted on
Today, I want to look into one of those cases of impatient and how the community has waited for that feature, to be specific, two upcoming functions: sibling-count() and sibling-index().
I wrote a post for Smashing Magazine that was published today ab
I am still an AI skeptic. The biggest risk I foresee is that if your sole responsibility is to write code, your job is at risk. It’s not time to panic, but I do see a lot of value in evolving your
I'm more thankful this time around because, last year, I didn't even get to write this post. But now that I'm back, writing this feels so, so, so good. There's a lot more gusto going into my writin
2024 has been one of the greatest years for CSS: cross-document view transitions,