CSS3 Image Filter Effects

Webkit introduced a new CSS property that allows us to adjust image through CSS. This demo shows when this property is applied to the image.

grayscale

Photo by: Mehdi Kh

Codes

img {
  -webkit-filter: grayscale(100%);
}

Sepia

Photo by: Mehdi Kh

Codes

      img {
      -webkit-filter: sepia(100%);
      } 

Brightness

Photo by: Mehdi Kh

Codes

img {
  -webkit-filter: brightness(50%);
}

Contrast

Photo by: Mehdi Kh

Codes

img {
  -webkit-filter: contrast(200%);
}

Gaussian Blur

Photo by: Mehdi Kh

Codes

img {
  -webkit-filter: blur(10px);
}