Skip to content

Instantly share code, notes, and snippets.

@GradientAnimator
Created September 3, 2020 19:41
Show Gist options
  • Save GradientAnimator/efc06e01001c7f85b03dcb3fb05fc0d6 to your computer and use it in GitHub Desktop.
Save GradientAnimator/efc06e01001c7f85b03dcb3fb05fc0d6 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
.css-selector {
    background: linear-gradient(247deg, #66d5f7, #28b4c7, #2c93e8, #76c1ff);
    background-size: 800% 800%;
    -webkit-animation: AnimationName 16s ease infinite;
    -moz-animation: AnimationName 16s ease infinite;
    -o-animation: AnimationName 16s ease infinite;
    animation: AnimationName 16s ease infinite;
}
@-webkit-keyframes AnimationName {
    0%{background-position:0% 78%}
    50%{background-position:100% 23%}
    100%{background-position:0% 78%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 78%}
    50%{background-position:100% 23%}
    100%{background-position:0% 78%}
}
@-o-keyframes AnimationName {
    0%{background-position:0% 78%}
    50%{background-position:100% 23%}
    100%{background-position:0% 78%}
}
@keyframes AnimationName {
    0%{background-position:0% 78%}
    50%{background-position:100% 23%}
    100%{background-position:0% 78%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment