Created
November 23, 2021 14:55
-
-
Save GradientAnimator/d8c47f4e8556096d0c8e929a555169b6 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(16deg, #0d203f, #e3cb0e); | |
background-size: 400% 400%; | |
-webkit-animation: blu 9s ease infinite; | |
-moz-animation: blu 9s ease infinite; | |
-o-animation: blu 9s ease infinite; | |
animation: blu 9s ease infinite; | |
} | |
@-webkit-keyframes blu { | |
0%{background-position:76% 0%} | |
50%{background-position:25% 100%} | |
100%{background-position:76% 0%} | |
} | |
@-moz-keyframes blu { | |
0%{background-position:76% 0%} | |
50%{background-position:25% 100%} | |
100%{background-position:76% 0%} | |
} | |
@-o-keyframes blu { | |
0%{background-position:76% 0%} | |
50%{background-position:25% 100%} | |
100%{background-position:76% 0%} | |
} | |
@keyframes blu { | |
0%{background-position:76% 0%} | |
50%{background-position:25% 100%} | |
100%{background-position:76% 0%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment