Skip to content

Instantly share code, notes, and snippets.

Created October 27, 2017 19:30
Show Gist options
  • Save anonymous/e923c7b37e2b2aae819c7681c194a9fa to your computer and use it in GitHub Desktop.
Save anonymous/e923c7b37e2b2aae819c7681c194a9fa to your computer and use it in GitHub Desktop.
CSS Gradient Animation
background: linear-gradient(270deg, #fb966e, #eaf0ce, #b3c9b0, #f3d45c, #bec8d9, #eb7a77, #ffadbc, #d9d0e0, #8b9cd2, #f7f2af, #97c9c6, #ffcfa8);
background-size: 2400% 2400%;
-webkit-animation: AnimationName 59s ease infinite;
-moz-animation: AnimationName 59s ease infinite;
-o-animation: AnimationName 59s ease infinite;
animation: AnimationName 59s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-o-keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes AnimationName {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment