how to saturate colors in css

Solutions on MaxInterview for how to saturate colors in css by the best coders in the world

showing results for - "how to saturate colors in css"
Antonio
25 Sep 2018
1/* syntax:
2The amount of the conversion, specified as a <number> or a <percentage>.
3A value under 100% desaturates the image, while a value over 100% 
4super-saturates it. A value of 0% is completely unsaturated, while
5a value of 100% leaves the input unchanged. The lacuna value for 
6interpolation is 1. */
7saturate(amount)
8
9/* examples */
10filter: saturate(1);
11filter: saturate(2);
12filter: saturate(50%);