Created
June 23, 2012 18:50
-
-
Save codyjames/2979464 to your computer and use it in GitHub Desktop.
CSS3 Animation Fix Glitch in Mobile Safari
This file contains hidden or 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
// Assuming this | |
.foo { | |
-webkit-transition: -webkit-transform 1s ease-out; | |
} | |
.foo:hover { | |
-webkit-transform: translateX(20px); | |
} | |
// This fixes iOS glitches | |
.foo { | |
-webkit-transform: translateZ(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment