Created
January 28, 2014 17:20
-
-
Save oknoway/8672020 to your computer and use it in GitHub Desktop.
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
// keyframes mixin | |
// usage: | |
// @include keyframes(bgcolor) { | |
// 0% { | |
// background-color: #ffccf2; | |
// } | |
// 50% { | |
// background-color: #ccffcc; | |
// } | |
// 100% { | |
// background-color: #ccffff; | |
// } | |
// } | |
@mixin keyframes($name) { | |
@-webkit-keyframes #{$name} { | |
@content; | |
} | |
@-moz-keyframes #{$name} { | |
@content; | |
} | |
@-ms-keyframes #{$name} { | |
@content; | |
} | |
@keyframes #{$name} { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment