Skip to content

Instantly share code, notes, and snippets.

@defo550
Last active December 26, 2015 01:48
Show Gist options
  • Save defo550/7073344 to your computer and use it in GitHub Desktop.
Save defo550/7073344 to your computer and use it in GitHub Desktop.
SASS mixin to add appropriate vendor-prefixes for CSS3 properties: e.g. transition, transform, box-shadow, box-sizing, etc.
@mixin prefixr( $property, $value, $prefixes: webkit moz ) {
@each $prefix in $prefixes {
-#{$prefix}-#{$property}: $value;
}
#{$property}: $value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment