-
-
Save zomars/ab7a09db64947cb2b346 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
background: linear-gradient(1deg, #a24bcf, #cf4b4b, #c0cf4b, #52cf4b, #52cf4b, #4bc5cf, #4b79cf); | |
background-size: 1400% 1400%; | |
-webkit-animation: encounterGradient 30s ease infinite; | |
-moz-animation: encounterGradient 30s ease infinite; | |
-o-animation: encounterGradient 30s ease infinite; | |
animation: encounterGradient 30s ease infinite; | |
@-webkit-keyframes encounterGradient { | |
0%{background-position:50% 0%} | |
50%{background-position:51% 100%} | |
100%{background-position:50% 0%} | |
} | |
@-moz-keyframes encounterGradient { | |
0%{background-position:50% 0%} | |
50%{background-position:51% 100%} | |
100%{background-position:50% 0%} | |
} | |
@-o-keyframes encounterGradient { | |
0%{background-position:50% 0%} | |
50%{background-position:51% 100%} | |
100%{background-position:50% 0%} | |
} | |
@keyframes encounterGradient { | |
0%{background-position:50% 0%} | |
50%{background-position:51% 100%} | |
100%{background-position:50% 0%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment