With CSS3 we can easily customize the image. But remember that this does not change the image. Only the customized image is displayed.
See the following code for more details.
To make the image gray:
img { -webkit-filter: grayscale(100%); }
To give sepia a look:
img { -webkit-filter: sepia(100%); }
To adjust the brightness:
img { -webkit-filter: brightness(50%); }
To adjust the contrast:
img { -webkit-filter: contrast(200%); }
Blur image:
img { -webkit-filter: blur(10px); }
You should also do this for another browser. That is, include all CSS statements
filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%);
Use multiple
filter: blur(5px) grayscale(1);
Codepen demo
Raj Sharma Jan 19 '14 at 11:59 a.m. 2014-01-19 11:59
source share