Created
March 15, 2017 16:25
-
-
Save fernandiez/9add4be2811e0e18c23d2cb6c75e81e8 to your computer and use it in GitHub Desktop.
CSS3 Grayscale filter Property
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
// filter: | |
// none | blur(px) | brightness(%) | contrast(%) | drop-shadow(h-shadow v-shadow blur spread color) | | |
// grayscale(%) | hue-rotate(deg) | invert(%) | opacity(%) | saturate(%) | sepia(%) | url(); | |
// initial inerit | |
.class .class img { | |
-webkit-filter: grayscale(100%); | |
filter: grayscale(100%); | |
} | |
.class img:hover { | |
-webkit-filter: none; | |
filter: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment