Skip to content

Instantly share code, notes, and snippets.

@chrisjlee
Created March 2, 2014 00:07
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save chrisjlee/9299678 to your computer and use it in GitHub Desktop.
Save chrisjlee/9299678 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