The CSS filter property changes an image’s rendered appearance by combining the property with a function that defines the visual effect. section 4.3.1
A practical filter workflow is:
- Choose a filter function, such as grayscale(), to describe the effect. section 4.3.1
- Pass the function an appropriate value, such as a percentage controlling how much color to remove. section 4.3.1
- Check performance when applying resource-intensive effects such as drop-shadow() or blur() to many large images. section 4.3.1
Turn an image black and white
Apply grayscale() at 100% to remove all color: img { filter: grayscale(100%); }. The result appears like a black-and-white photograph. section 4.3.1
Use the grayscale image figure to compare the filtered result with the original appearance. section 4.3.1

