Created
May 2, 2017 00:30
-
-
Save SimonLlewellyn/28cf2dceff47a7f797378241c6a5215a to your computer and use it in GitHub Desktop.
Hover image remove greyscale - classy af
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
.imgclass img{ | |
filter: grayscale(100%); | |
-webkit-filter: grayscale(100%); | |
-moz-filter: grayscale(100%); | |
filter: grayscale(100%); | |
} | |
.imgclass img:hover{ | |
filter: grayscale(0%); | |
-webkit-filter: grayscale(0%); | |
-moz-filter: grayscale(0%); | |
filter: grayscale(0%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment