Skip to content

Instantly share code, notes, and snippets.

@neekey
Forked from 2ndkauboy/_animation.scss
Created April 1, 2014 14:50
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 neekey/9915707 to your computer and use it in GitHub Desktop.
Save neekey/9915707 to your computer and use it in GitHub Desktop.
@mixin animation($value) {
-webkit-animation: unquote($value);
-moz-animation: unquote($value);
-o-animation: unquote($value);
animation: unquote($value);
}
@mixin animation-property($property, $value) {
-webkit-animation-#{$property}: unquote($value);
-moz-animation-#{$property}: unquote($value);
-o-animation-#{$property}: unquote($value);
animation-#{$property}: unquote($value);
}
@mixin keyframes($name) {
@-webkit-keyframes #{$name} { @content; }
@-moz-keyframes #{$name} { @content; }
@-o-keyframes #{$name} { @content; }
@keyframes #{$name} { @content; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment