Skip to content

Instantly share code, notes, and snippets.

View mufaddalmw's full-sized avatar

Mufaddal Motorwala mufaddalmw

View GitHub Profile
@mufaddalmw
mufaddalmw / gist:5194845
Last active December 15, 2015 03:29
Resolve CSS3 onhover opacity animation image movement bug using scale and backface properties.
img {
opacity: .8;
transition:0.5s linear opacity;
-webkit-transition:0.5s linear opacity;
-moz-transition:0.5s linear opacity;
-webkit-backface-visibility: hidden;
-webkit-transform: translateZ(0) scale(1.0, 1.0);
-moz-backface-visibility: hidden;
-moz-transform: translateZ(0) scale(1.0, 1.0);
}