Skip to content

Instantly share code, notes, and snippets.

Created September 26, 2017 05:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/84742104f3da653eecc5f5ee4853273a to your computer and use it in GitHub Desktop.
Save anonymous/84742104f3da653eecc5f5ee4853273a to your computer and use it in GitHub Desktop.
CSS Gradient Animation
background: linear-gradient(222deg, #d3555c, #f48d3a, #fdc753, #70bc53, #249cd5, #9d61a4);
background-size: 1200% 1200%;
-webkit-animation: GradientScroll 30s ease infinite;
-moz-animation: GradientScroll 30s ease infinite;
-o-animation: GradientScroll 30s ease infinite;
animation: GradientScroll 30s ease infinite;
@-webkit-keyframes GradientScroll {
    0%{background-position:90% 0%}
    50%{background-position:11% 100%}
    100%{background-position:90% 0%}
}
@-moz-keyframes GradientScroll {
    0%{background-position:90% 0%}
    50%{background-position:11% 100%}
    100%{background-position:90% 0%}
}
@-o-keyframes GradientScroll {
    0%{background-position:90% 0%}
    50%{background-position:11% 100%}
    100%{background-position:90% 0%}
}
@keyframes GradientScroll {
    0%{background-position:90% 0%}
    50%{background-position:11% 100%}
    100%{background-position:90% 0%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment