Created
June 29, 2012 02:32
-
-
Save reediredale/3015313 to your computer and use it in GitHub Desktop.
HTML5 Image Swap CSS
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
.swapimage { | |
display: block; | |
position: relative; | |
margin: 0px; | |
padding: 0px; | |
transition: all 2s; | |
margin-bottom: 12px; | |
border: 1px solid #fff; | |
} | |
.swap-target { | |
position: absolute; | |
top: 0; | |
left: 0; | |
display: none; | |
z-index: 2; | |
border: 1px solid #333; | |
box-shadow: 0px 0px 5px #444; | |
} | |
.swapimage:hover .swap-target { | |
display: block; } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment