Created
October 16, 2013 09:12
-
-
Save jelmerdemaat/7004920 to your computer and use it in GitHub Desktop.
SASS cross-browser animation mixins
This file contains hidden or 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
@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