Skip to content

Instantly share code, notes, and snippets.

@robbestad
Created June 30, 2013 20:22
Show Gist options
  • Select an option

  • Save robbestad/5896729 to your computer and use it in GitHub Desktop.

Select an option

Save robbestad/5896729 to your computer and use it in GitHub Desktop.
css image hover
.image {
/* image properties */
}
.image:hover {
-o-transition-duration: .33s;
-o-transition-property: border, color, opacity, -moz-opacity;
-webkit-transition-duration: .33s;
-webkit-transition-property: border, color, opacity, -moz-opacity;
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment