Skip to content

Instantly share code, notes, and snippets.

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 OmkarKirpan/8b97f77f58fa1af00c2bb0dc74167f18 to your computer and use it in GitHub Desktop.
Save OmkarKirpan/8b97f77f58fa1af00c2bb0dc74167f18 to your computer and use it in GitHub Desktop.
Translatez - translate z hack forces the browser to create a new layer and send rendering to the GPU. Helpful for items that move or animate. Source: http://stackoverflow.com/questions/10814178/css-performance-relative-to-translatez0
-webkit-transform: translatez(0);
-moz-transform: translatez(0);
-ms-transform: translatez(0);
-o-transform: translatez(0);
transform: translatez(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment