Created
May 24, 2024 09:06
-
-
Save GradientAnimator/4b995af105e0e4aca7f08de548d56a41 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(180deg, #19c89b, #b27057); | |
background-size: 400% 400%; | |
-webkit-animation: bro 8s ease infinite; | |
-moz-animation: bro 8s ease infinite; | |
-o-animation: bro 8s ease infinite; | |
animation: bro 8s ease infinite; | |
} | |
@-webkit-keyframes bro { | |
0%{background-position:0% 63%} | |
50%{background-position:100% 38%} | |
100%{background-position:0% 63%} | |
} | |
@-moz-keyframes bro { | |
0%{background-position:0% 63%} | |
50%{background-position:100% 38%} | |
100%{background-position:0% 63%} | |
} | |
@-o-keyframes bro { | |
0%{background-position:0% 63%} | |
50%{background-position:100% 38%} | |
100%{background-position:0% 63%} | |
} | |
@keyframes bro { | |
0%{background-position:0% 63%} | |
50%{background-position:100% 38%} | |
100%{background-position:0% 63%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment