Created
August 8, 2020 15:42
-
-
Save GradientAnimator/9b428fc13e75fa31af8bdc79ccc5ec3b 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(42deg, #6385f2, #4de9f2, #b03ef0, #37f5ab); | |
background-size: 800% 800%; | |
-webkit-animation: bg-gradient 39s ease infinite; | |
-moz-animation: bg-gradient 39s ease infinite; | |
-o-animation: bg-gradient 39s ease infinite; | |
animation: bg-gradient 39s ease infinite; | |
} | |
@-webkit-keyframes bg-gradient { | |
0%{background-position:90% 0%} | |
50%{background-position:11% 100%} | |
100%{background-position:90% 0%} | |
} | |
@-moz-keyframes bg-gradient { | |
0%{background-position:90% 0%} | |
50%{background-position:11% 100%} | |
100%{background-position:90% 0%} | |
} | |
@-o-keyframes bg-gradient { | |
0%{background-position:90% 0%} | |
50%{background-position:11% 100%} | |
100%{background-position:90% 0%} | |
} | |
@keyframes bg-gradient { | |
0%{background-position:90% 0%} | |
50%{background-position:11% 100%} | |
100%{background-position:90% 0%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment