Skip to content

Instantly share code, notes, and snippets.

@GradientAnimator
Created February 26, 2021 18:36
Show Gist options
  • Save GradientAnimator/e9948bbf0cbd7c3c902c5a8d83530661 to your computer and use it in GitHub Desktop.
Save GradientAnimator/e9948bbf0cbd7c3c902c5a8d83530661 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
.css-selector {
    background: linear-gradient(208deg, #4ea891, #82a84e, #c8a434, #d47e64);
    background-size: 800% 800%;
    -webkit-animation: MigglleGradient 12s ease infinite;
    -moz-animation: MigglleGradient 12s ease infinite;
    -o-animation: MigglleGradient 12s ease infinite;
    animation: MigglleGradient 12s ease infinite;
}
@-webkit-keyframes MigglleGradient {
    0%{background-position:32% 0%}
    50%{background-position:69% 100%}
    100%{background-position:32% 0%}
}
@-moz-keyframes MigglleGradient {
    0%{background-position:32% 0%}
    50%{background-position:69% 100%}
    100%{background-position:32% 0%}
}
@-o-keyframes MigglleGradient {
    0%{background-position:32% 0%}
    50%{background-position:69% 100%}
    100%{background-position:32% 0%}
}
@keyframes MigglleGradient {
    0%{background-position:32% 0%}
    50%{background-position:69% 100%}
    100%{background-position:32% 0%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment