Skip to content

Instantly share code, notes, and snippets.

@codyjames
Created June 23, 2012 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codyjames/2979464 to your computer and use it in GitHub Desktop.
Save codyjames/2979464 to your computer and use it in GitHub Desktop.
CSS3 Animation Fix Glitch in Mobile Safari
// 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