Created
May 20, 2014 13:12
-
-
Save lstanard/900b2f4a4d7d2b546aa6 to your computer and use it in GitHub Desktop.
CSS3 keyframe animation template (with vendor prefixes)
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-speed: 1.2s; | |
$animation-name: pulsate; | |
$animation-ease: ease-out; | |
-webkit-animation: $animation-name $animation-speed $animation-ease infinite; | |
-moz-animation: $animation-name $animation-speed $animation-ease infinite; | |
-o-animation: $animation-name $animation-speed $animation-ease infinite; | |
animation: $animation-name $animation-speed $animation-ease infinite; | |
$scale-lrg: 1; | |
$scale-sml: .8; | |
@-webkit-keyframes $animation-name { | |
0% {@include scale($scale-lrg,$scale-lrg);} | |
50% {@include scale($scale-sml,$scale-sml);} | |
100% {@include scale($scale-lrg,$scale-lrg);} | |
} | |
@-moz-keyframes $animation-name { | |
0% {@include scale($scale-lrg,$scale-lrg);} | |
50% {@include scale($scale-sml,$scale-sml);} | |
100% {@include scale($scale-lrg,$scale-lrg);} | |
} | |
@-o-keyframes $animation-name { | |
0% {@include scale($scale-lrg,$scale-lrg);} | |
50% {@include scale($scale-sml,$scale-sml);} | |
100% {@include scale($scale-lrg,$scale-lrg);} | |
} | |
@keyframes $animation-name { | |
0% {@include scale($scale-lrg,$scale-lrg);} | |
50% {@include scale($scale-sml,$scale-sml);} | |
100% {@include scale($scale-lrg,$scale-lrg);} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment