Skip to content

Instantly share code, notes, and snippets.

@PatMurrayDEV
Forked from anonymous/my.css
Created September 26, 2017 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatMurrayDEV/8d62074538989bacc2239c27103b1979 to your computer and use it in GitHub Desktop.
Save PatMurrayDEV/8d62074538989bacc2239c27103b1979 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