Skip to content

Instantly share code, notes, and snippets.

@ste2425
Created July 21, 2016 09:03
Show Gist options
  • Save ste2425/2e97f1f07950208670e05b6aa401d8ae to your computer and use it in GitHub Desktop.
Save ste2425/2e97f1f07950208670e05b6aa401d8ae to your computer and use it in GitHub Desktop.
Vender prefix utility
@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