Skip to content

Instantly share code, notes, and snippets.

@ryanburgess
Last active December 30, 2015 18:09
Show Gist options
  • Save ryanburgess/7865528 to your computer and use it in GitHub Desktop.
Save ryanburgess/7865528 to your computer and use it in GitHub Desktop.
Add translate to an element using the Translate SASS Mixin.
// -----------------------------------------
// Translate
// -------------------------------------------
// usage: @include translate(0);
@mixin translate($value){
-webkit-transform: translatez($value);
-moz-transform: translatez($value);
-ms-transform: translatez($value);
-o-transform: translatez($value);
transform: translatez($value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment