-
-
Save BagheeraBear/ce397a8417425a02ebc5300f5228571b 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(265deg, #5f06f3, #f2153a); | |
background-size: 400% 400%; | |
-webkit-animation: CloudHappy 30s ease infinite; | |
-moz-animation: CloudHappy 30s ease infinite; | |
-o-animation: CloudHappy 30s ease infinite; | |
animation: CloudHappy 30s ease infinite; | |
@-webkit-keyframes CloudHappy { | |
0%{background-position:0% 54%} | |
50%{background-position:100% 47%} | |
100%{background-position:0% 54%} | |
} | |
@-moz-keyframes CloudHappy { | |
0%{background-position:0% 54%} | |
50%{background-position:100% 47%} | |
100%{background-position:0% 54%} | |
} | |
@-o-keyframes CloudHappy { | |
0%{background-position:0% 54%} | |
50%{background-position:100% 47%} | |
100%{background-position:0% 54%} | |
} | |
@keyframes CloudHappy { | |
0%{background-position:0% 54%} | |
50%{background-position:100% 47%} | |
100%{background-position:0% 54%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment