First, grayscale grayscale
With this effect, the image will be grayed out, and if you do not have any parameter values in grayscale (), it will be rendered with the default value of "100%". The effect is as follows:
Code:
#gray {
-webkit-filter:grayscale (1);
}
If you set the parameter value in grayscale (), it will change from color to black and white, as follows:
Code:
#gray {
-webkit-filter:grayscale (0.5);
}
second, Sepia brown, Brown
Use this special effect, make the picture overall tan, usually can make the picture a kind of nostalgic feeling. As follows:
Code:
#gray {
-webkit-filter:sepia (1);
}
If you set the parameter value in sepia (), it will change from colored to tan, as follows:
Code:
#gray {
-webkit-filter:sepia (0.7);
}
third, thesaturation of saturate
Using this effect will change the saturation of the image, as shown in the effect:
Code:
#gray {
-webkit-filter:saturate (5);
}
Four,
hue-rotate hue rotation
hue-rotate used to change the hue of a picture the effect is as follows:
Code:
#gray {
-webkit-filter:hue-rotate (80DEG);
}
Five,
Invert
Inverse Color
Invert The effect is like the effect of our camera negatives, the effect is as follows:
Code:
#gray {
-webkit-filter:invert (1);
}
Change the saturation of a picture
CSS3 Fliter 10 Special effects (i)