css make image gray

Solutions on MaxInterview for css make image gray by the best coders in the world

showing results for - "css make image gray"
Evelyn
19 Oct 2018
1img {
2  filter: gray; /* IE6-9 */
3  -webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */
4  filter: grayscale(1); /* Microsoft Edge and Firefox 35+ */
5}
6
7/* Disable grayscale on hover */
8img:hover {
9  -webkit-filter: grayscale(0);
10  filter: none;
11}