Created
March 14, 2015 21:09
-
-
Save jasonkmccoy/924d53459c14da62ec3d to your computer and use it in GitHub Desktop.
xPos mixin: This mixin provides a shorthand for positioning an element along the x axis
This file contains hidden or 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
@mixin xPos($x) { | |
-webkit-transform:translateX($x); | |
-moz-transform:translateX($x); | |
-ms-transform:translateX($x); | |
transform:translateX($x); | |
} | |
/* Usage */ | |
div { | |
@include xPos(50px); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.developerdrive.com/2014/11/15-essential-sass-mixins/