Created
May 8, 2024 16:53
-
-
Save GradientAnimator/cc27a474347727f962191718b0fcd38a 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(55deg, #f8f8f8, #9ef289); | |
background-size: 400% 400%; | |
-webkit-animation: AnimationName 8s ease infinite; | |
-moz-animation: AnimationName 8s ease infinite; | |
-o-animation: AnimationName 8s ease infinite; | |
animation: AnimationName 8s ease infinite; | |
} | |
@-webkit-keyframes AnimationName { | |
0%{background-position:0% 23%} | |
50%{background-position:100% 78%} | |
100%{background-position:0% 23%} | |
} | |
@-moz-keyframes AnimationName { | |
0%{background-position:0% 23%} | |
50%{background-position:100% 78%} | |
100%{background-position:0% 23%} | |
} | |
@-o-keyframes AnimationName { | |
0%{background-position:0% 23%} | |
50%{background-position:100% 78%} | |
100%{background-position:0% 23%} | |
} | |
@keyframes AnimationName { | |
0%{background-position:0% 23%} | |
50%{background-position:100% 78%} | |
100%{background-position:0% 23%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment