Skip to content

Instantly share code, notes, and snippets.

@erotte
Created April 25, 2014 23:28
Show Gist options
  • Save erotte/11306693 to your computer and use it in GitHub Desktop.
Save erotte/11306693 to your computer and use it in GitHub Desktop.
Sass helpers for keyframes animation
=keyframes($name)
@-webkit-keyframes #{$name}
@content
@-moz-keyframes #{$name}
@content
@keyframes #{$name}
@content
=animation($name, $duration)
-webkit-animation-name: #{$name}
-webkit-animation-duration: #{$duration}
-moz-animation-name: #{$name}
-moz-animation-duration: #{$duration}
animation-name: #{$name}
animation-duration: #{$duration}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment