Skip to content

Instantly share code, notes, and snippets.

@yokotak0527
Last active December 25, 2015 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yokotak0527/7020366 to your computer and use it in GitHub Desktop.
Save yokotak0527/7020366 to your computer and use it in GitHub Desktop.
ベンダープレフィックスを付ける即席のあれ。
@mixin keyframes($name){
@-webkit-keyframes #{$name}{@content;}
@-moz-keyframes #{$name}{@content;}
@-ms-keyframes #{$name}{@content;}
@keyframes #{$name}{@content;}
}
@mixin apply-vendor($type,$val...){ @each $prefix in $vendors{
#{$prefix}#{$type} : $val; }
}
// こんな感じで使う
// @include apply-vendor(transform,rotateY(360deg) rotateX(20deg))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment