Created
May 13, 2024 18:01
-
-
Save GradientAnimator/3aa6b111c0832aea5b59438a0d189fe4 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(220deg, #234978, #d19335, #c53ff2, #9da9c0); | |
background-size: 800% 800%; | |
-webkit-animation: HomePage 14s ease infinite; | |
-moz-animation: HomePage 14s ease infinite; | |
-o-animation: HomePage 14s ease infinite; | |
animation: HomePage 14s ease infinite; | |
} | |
@-webkit-keyframes HomePage { | |
0%{background-position:7% 0%} | |
50%{background-position:94% 100%} | |
100%{background-position:7% 0%} | |
} | |
@-moz-keyframes HomePage { | |
0%{background-position:7% 0%} | |
50%{background-position:94% 100%} | |
100%{background-position:7% 0%} | |
} | |
@-o-keyframes HomePage { | |
0%{background-position:7% 0%} | |
50%{background-position:94% 100%} | |
100%{background-position:7% 0%} | |
} | |
@keyframes HomePage { | |
0%{background-position:7% 0%} | |
50%{background-position:94% 100%} | |
100%{background-position:7% 0%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment