Create a gist now

Instantly share code, notes, and snippets.

SASS prefixer
@mixin prefix($property, $value, $prefixes: ("-webkit-","-moz-","-o-","-ms-","")) {
@each $prefix in $prefixes {
#{$prefix}#{$property}: #{$value};
}
}
.block {
@include prefix("transition", ".5s");
@include prefix("border-radius", "5px", ("-webkit-","-moz-",""));
}
@beholdr
Owner

Prefixer from this article with prefix defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment