Skip to content

Instantly share code, notes, and snippets.

@jodyheavener
Created December 15, 2014 18:25
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 jodyheavener/d57d2f744b0bcd32eb65 to your computer and use it in GitHub Desktop.
Save jodyheavener/d57d2f744b0bcd32eb65 to your computer and use it in GitHub Desktop.
Animation mixins
/* Animation and Transform mixins */
@mixin animation($str) {
-webkit-animation: #{$str};
-moz-animation: #{$str};
-ms-animation: #{$str};
animation: #{$str};
-webkit-animation-fill-mode: both;
-moz-animation-fill-mode: both;
}
@mixin animation-delay($str) {
-moz-animation-delay: #{$str};
-webkit-animation-delay: #{$str};
-ms-animation-delay: #{$str};
animation-delay: #{$str};
}
@mixin keyframes($animation-name) {
@-webkit-keyframes $animation-name {
@content;
}
@-moz-keyframes $animation-name {
@content;
}
@-ms-keyframes $animation-name {
@content;
}
@keyframes $animation-name {
@content;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment