Last active
December 11, 2015 22:58
-
-
Save kokarn/4673391 to your computer and use it in GitHub Desktop.
CSS3 Grayscale (kinda)
This file contains hidden or 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
.object-in-same-group-as-selected-object { | |
filter: url( '../resources/filters/filters.svg#grayscale' ); /* Firefox 3.5+ */ | |
filter: gray; /* IE6-9 */ | |
-webkit-filter: grayscale(1); /* Google Chrome & Safari 6+ */ | |
-webkit-filter: grayscale(100%); /* New WebKit */ | |
-moz-filter: grayscale(100%); | |
-ms-filter: grayscale(100%); | |
-o-filter: grayscale(100%); /* Not yet supported in Gecko, Opera or IE */ | |
filter: grayscale(100%); /* Current draft standard */ | |
} | |
.selected-object, | |
.object-in-same-group-as-selected-object:hover { | |
filter: none; | |
-webkit-filter: grayscale(0); | |
-moz-filter: grayscale(0); | |
-ms-filter: grayscale(0); | |
-o-filter: grayscale(0); | |
filter: grayscale(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jwilsson This should work