Created
October 29, 2014 09:34
-
-
Save sonnyprince/5a681f381dfa10df345a to your computer and use it in GitHub Desktop.
Mixin to stop image hover jitter with opacity
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 imageOpacityFix() { | |
-webkit-transform: rotate(0); | |
-moz-transform: rotate(0); | |
-o-transform: rotate(0); | |
transform: rotate(0); | |
-webkit-backface-visibility: hidden; | |
-moz-backface-visibility: hidden; | |
-o-backface-visibility: hidden; | |
backface-visibility: hidden; | |
} | |
img{ | |
@include imageOpacityFix(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment