Skip to content

Instantly share code, notes, and snippets.

@jelmerdemaat
Created October 16, 2013 09:12
Show Gist options
  • Save jelmerdemaat/7004920 to your computer and use it in GitHub Desktop.
Save jelmerdemaat/7004920 to your computer and use it in GitHub Desktop.
SASS cross-browser animation mixins
@mixin keyframes( $animationName ) {
@-webkit-keyframes $animationName {
@content;
}
@-moz-keyframes $animationName {
@content;
}
@-o-keyframes $animationName {
@content;
}
@keyframes $animationName {
@content;
}
}
@mixin animation( $args ) {
-webkit-animation: $args;
-khtml-animation: $args;
-moz-animation: $args;
-ms-animation: $args;
-o-animation: $args;
animation: $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment