Created
May 14, 2012 00:55
-
-
Save esteluk/2691005 to your computer and use it in GitHub Desktop.
CSS Styles for greyscale image hover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.image { | |
filter: url(filters.svg#grayscale); /* Firefox 3.5+ */ | |
filter: gray; /* IE6-9 */ | |
-webkit-filter: grayscale(1); /* Webkit Nightlies & Google Chrome Canary */ | |
} | |
.image:hover { | |
filter: none; /* Applies to FF + IE */ | |
-webkit-filter: grayscale(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment