Snippets

Display a black&white version of an image using CSS

CSS class to display a black&white version of an image.

img.desaturate { filter: grayscale(100%);
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
}

Source: http://demosthenes.info/blog/532/Convert-Images-To-Black--Wh...

Share this snippet

 
  • http://www.gearaffiti.com/ Bilal

    Nice share Jean :)