Created
November 14, 2013 19:29
-
-
Save rmariuzzo/7472851 to your computer and use it in GitHub Desktop.
Keyframes. Create a named animation sequence that can be applied to elements later.
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. | |
* Create a named animation sequence that can be applied to elements later. | |
* | |
* Usage: | |
* @include keyframes(fly) { | |
* from { | |
* transform: rotate(0deg); | |
* } | |
* to { | |
* transform: rotate(360deg); | |
* } | |
* } | |
*/ | |
@mixin keyframes($name) { | |
@-moz-keyframes #{$name} { | |
@content; | |
} | |
@-webkit-keyframes #{$name} { | |
@content; | |
} | |
@-o-keyframes #{$name} { | |
@content; | |
} | |
@-ms-keyframes #{$name} { | |
@content; | |
} | |
@-khtml-keyframes #{$name} { | |
@content; | |
} | |
@keyframes #{$name} { | |
@content; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment