CSS Filters
filter applies blur, brightness, contrast, grayscale, hue-rotate, invert, saturate and drop-shadow. Combine several by listing them.
Example
<style>
div { width: 70px; height: 50px; background: linear-gradient(90deg, #f59e0b, #14b8a6); display: inline-block; margin: 4px } .b { filter: blur(3px) } .g { filter: grayscale(1) } .h { filter: hue-rotate(90deg) }
</style>
<div></div><div class="b"></div><div class="g"></div><div class="h"></div>Exercise
Black and white.
filter: (1);
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.