Created
January 20, 2021 09:12
-
-
Save GradientAnimator/e80389b51e9161f2a022a3d69fabaf03 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(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%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lovely