Last active
December 30, 2015 18:09
-
-
Save ryanburgess/7865528 to your computer and use it in GitHub Desktop.
Add translate to an element using the Translate SASS Mixin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------------------------- | |
// 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