Skip to content

Instantly share code, notes, and snippets.

@andreystarkov
Forked from bergantine/gist:5243223
Created January 13, 2014 00:39
Show Gist options
  • Save andreystarkov/8392792 to your computer and use it in GitHub Desktop.
Save andreystarkov/8392792 to your computer and use it in GitHub Desktop.
img:hover {
-webkit-filter: grayscale(0%);
-webkit-transition: .5s ease-in-out;
-moz-filter: grayscale(0%);
-moz-transition: .5s ease-in-out;
-o-filter: grayscale(0%);
-o-transition: .5s ease-in-out;
}
img {
-webkit-filter: grayscale(100%);
-webkit-transition: .5s ease-in-out;
-moz-filter: grayscale(100%);
-moz-transition: .5s ease-in-out;
-o-filter: grayscale(100%);
-o-transition: .5s ease-in-out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment