Created
July 31, 2013 20:17
-
-
Save jrdn91/6125764 to your computer and use it in GitHub Desktop.
HTML/CSS: Rollover Solution
This file contains 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
<!-- HTML --> | |
<div><img src="" class="rollover"/></div> | |
<div></div> | |
<!-- CSS --> | |
.rollover { | |
position: absolute; | |
opacity: 0; | |
-webkit-transition: opacity 500ms ease; | |
-moz-transition: opacity 500ms ease; | |
-ms-transition: opacity 500ms ease; | |
-o-transition: opacity 500ms ease; | |
transition: opacity 500ms ease; | |
} | |
.rollover:hover { | |
opacity: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment