Created
July 23, 2024 20:45
-
-
Save GradientAnimator/19ed804702fda25714db104cc411d2d6 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(142deg, #5a5a5a, #b9b9b9); | |
background-size: 400% 400%; | |
-webkit-animation: sfondo 32s ease infinite; | |
-moz-animation: sfondo 32s ease infinite; | |
-o-animation: sfondo 32s ease infinite; | |
animation: sfondo 32s ease infinite; | |
} | |
@-webkit-keyframes sfondo { | |
0%{background-position:0% 57%} | |
50%{background-position:100% 44%} | |
100%{background-position:0% 57%} | |
} | |
@-moz-keyframes sfondo { | |
0%{background-position:0% 57%} | |
50%{background-position:100% 44%} | |
100%{background-position:0% 57%} | |
} | |
@-o-keyframes sfondo { | |
0%{background-position:0% 57%} | |
50%{background-position:100% 44%} | |
100%{background-position:0% 57%} | |
} | |
@keyframes sfondo { | |
0%{background-position:0% 57%} | |
50%{background-position:100% 44%} | |
100%{background-position:0% 57%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment