Created
July 21, 2016 09:03
-
-
Save ste2425/2e97f1f07950208670e05b6aa401d8ae to your computer and use it in GitHub Desktop.
Vender prefix utility
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
@mixin vendorPrefix($prop, $val) { | |
-webkit-#{$prop}: $val; | |
-moz-#{$prop}: $val; | |
-ms-#{$prop}: $val; | |
-o-#{$prop}: $val; | |
#{$prop}: $val; | |
} | |
/* | |
Use: | |
@include vendorPrefix(animation, rotate 1s infinite) | |
Not too sure if i prefer this to explicit mixins for each style however. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment