Skip to content

Instantly share code, notes, and snippets.

@roybarber
Created January 13, 2014 19:18
Show Gist options
  • Save roybarber/8406299 to your computer and use it in GitHub Desktop.
Save roybarber/8406299 to your computer and use it in GitHub Desktop.
Enable hardware acceleration on an animated element by using the “null transform hack”.
.element {-webkit-transform: translateZ(0);-moz-transform: translateZ(0);transform: translateZ(0);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment