Advertisement
firoze

images will be black opacity

Dec 14th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.52 KB | None | 0 0
  1. /* images will be black opacity*/  just use this css & call grayscale as a class
  2. .grayscale:hover {
  3.  
  4.   /* for Webkit browsere, Chrome 19+, Safari 6+ ... */
  5.   -webkit-filter: grayscale(1);
  6.  
  7.   /* this is for Firefox 3.5+, Firefox mobile */
  8.   filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'gs\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#gs");
  9.  
  10.   /* for IE6+ */
  11.   filter: gray;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement