Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save GradientAnimator/d3dbd299307b6da57c90fe7297a6ebd1 to your computer and use it in GitHub Desktop.
Save GradientAnimator/d3dbd299307b6da57c90fe7297a6ebd1 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
background: linear-gradient(322deg, #f419e7, #9ba90c, #e32a1b);
background-size: 600% 600%;
-webkit-animation: AnimationName 24s ease infinite;
-moz-animation: AnimationName 24s ease infinite;
-o-animation: AnimationName 24s ease infinite;
animation: AnimationName 24s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:31% 0%}
    50%{background-position:70% 100%}
    100%{background-position:31% 0%}
}
@-moz-keyframes AnimationName {
    0%{background-position:31% 0%}
    50%{background-position:70% 100%}
    100%{background-position:31% 0%}
}
@-o-keyframes AnimationName {
    0%{background-position:31% 0%}
    50%{background-position:70% 100%}
    100%{background-position:31% 0%}
}
@keyframes AnimationName {
    0%{background-position:31% 0%}
    50%{background-position:70% 100%}
    100%{background-position:31% 0%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment