Skip to content

Instantly share code, notes, and snippets.

@litopia
Forked from anonymous/my.css
Last active August 29, 2015 14:12
Show Gist options
  • Save litopia/ed56b6ac449441130d28 to your computer and use it in GitHub Desktop.
Save litopia/ed56b6ac449441130d28 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
/* link: http://www.gradient-animator.com/ */
background: linear-gradient(254deg, #342466, #665024, #2a6624);
background-size: 600% 600%;
-webkit-animation: AnimationName 54s ease infinite;
-moz-animation: AnimationName 54s ease infinite;
-o-animation: AnimationName 54s ease infinite;
animation: AnimationName 54s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 71%}
    50%{background-position:100% 30%}
    100%{background-position:0% 71%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 71%}
    50%{background-position:100% 30%}
    100%{background-position:0% 71%}
}
@-o-keyframes AnimationName {
    0%{background-position:0% 71%}
    50%{background-position:100% 30%}
    100%{background-position:0% 71%}
}
@keyframes AnimationName {
    0%{background-position:0% 71%}
    50%{background-position:100% 30%}
    100%{background-position:0% 71%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment