Created
December 2, 2011 14:39
-
-
Save xaviervia/1423449 to your computer and use it in GitHub Desktop.
Hoverable in img sprite (interesting mixin)
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
@mixin hoverable($width, $height) | |
display: block | |
position: relative | |
overflow: hidden | |
height: $height | |
width: $width | |
img | |
position: relative | |
display: block | |
img.rollover | |
bottom: $height * 3 | |
opacity: 0 | |
filter: alpha(opacity=0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment