Created
February 26, 2021 18:36
-
-
Save GradientAnimator/e9948bbf0cbd7c3c902c5a8d83530661 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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