Created
December 15, 2014 18:25
-
-
Save jodyheavener/d57d2f744b0bcd32eb65 to your computer and use it in GitHub Desktop.
Animation mixins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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