Created
July 22, 2017 05:01
-
-
Save anonymous/cfc338bb629338d9b4e0943d1e48809f to your computer and use it in GitHub Desktop.
CSS Gradient Animation
This file contains hidden or 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(222deg, #0288d1, #4dd0e1); | |
background-size: 400% 400%; | |
-webkit-animation: GradientAnimation 23s ease infinite; | |
-moz-animation: GradientAnimation 23s ease infinite; | |
-o-animation: GradientAnimation 23s ease infinite; | |
animation: GradientAnimation 23s ease infinite; | |
@-webkit-keyframes GradientAnimation { | |
0%{background-position:0% 51%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 51%} | |
} | |
@-moz-keyframes GradientAnimation { | |
0%{background-position:0% 51%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 51%} | |
} | |
@-o-keyframes GradientAnimation { | |
0%{background-position:0% 51%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 51%} | |
} | |
@keyframes GradientAnimation { | |
0%{background-position:0% 51%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 51%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment