Skip to content

Instantly share code, notes, and snippets.

@GradientAnimator
Created January 20, 2021 09:12
Show Gist options
  • Save GradientAnimator/e80389b51e9161f2a022a3d69fabaf03 to your computer and use it in GitHub Desktop.
Save GradientAnimator/e80389b51e9161f2a022a3d69fabaf03 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
.css-selector {
    background: linear-gradient(188deg, #2183c1, #bed7f3, #faad44, #fa6346, #f42456, #992f7e, #29406e);
    background-size: 1400% 1400%;
    -webkit-animation: BigSurColors 6s ease infinite;
    -moz-animation: BigSurColors 6s ease infinite;
    -o-animation: BigSurColors 6s ease infinite;
    animation: BigSurColors 6s ease infinite;
}
@-webkit-keyframes BigSurColors {
    0%{background-position:60% 0%}
    50%{background-position:41% 100%}
    100%{background-position:60% 0%}
}
@-moz-keyframes BigSurColors {
    0%{background-position:60% 0%}
    50%{background-position:41% 100%}
    100%{background-position:60% 0%}
}
@-o-keyframes BigSurColors {
    0%{background-position:60% 0%}
    50%{background-position:41% 100%}
    100%{background-position:60% 0%}
}
@keyframes BigSurColors {
    0%{background-position:60% 0%}
    50%{background-position:41% 100%}
    100%{background-position:60% 0%}
}
@gregzanch
Copy link

Lovely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment