Direct link to the article A Whistle-Stop Tour of 4 New CSS Color Features

A Whistle-Stop Tour of 4 New CSS Color Features

I was just writing in my “What’s new in since CSS3?” article about recent and possible future changes to CSS colors. It’s weirdly a lot. There are just as many or more new and upcoming ways to define colors than what we have now. I thought we’d take a really quick look. First, a major […]

Avatar of Chris Coyier
Chris Coyier on
Direct link to the article No Motion Isn’t Always prefers-reduced-motion

No Motion Isn’t Always prefers-reduced-motion

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;
  
Avatar of Chris Coyier
Chris Coyier on
Keep browsing in the archives