Created
May 10, 2024 20:51
-
-
Save GradientAnimator/168791a8cde1d5a55bca47886b1d9216 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(270deg, #f3ce00, #4bee27, #1addd6, #1481ff, #ff7314, #ff14d7); | |
background-size: 1200% 1200%; | |
-webkit-animation: AnimationName 14s ease infinite; | |
-moz-animation: AnimationName 14s ease infinite; | |
-o-animation: AnimationName 14s ease infinite; | |
animation: AnimationName 14s ease infinite; | |
} | |
@-webkit-keyframes AnimationName { | |
0%{background-position:0% 71%} | |
50%{background-position:100% 30%} | |
100%{background-position:0% 71%} | |
} | |
@-moz-keyframes AnimationName { | |
0%{background-position:0% 71%} | |
50%{background-position:100% 30%} | |
100%{background-position:0% 71%} | |
} | |
@-o-keyframes AnimationName { | |
0%{background-position:0% 71%} | |
50%{background-position:100% 30%} | |
100%{background-position:0% 71%} | |
} | |
@keyframes AnimationName { | |
0%{background-position:0% 71%} | |
50%{background-position:100% 30%} | |
100%{background-position:0% 71%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment