Created
December 22, 2014 21:34
-
-
Save anonymous/056eecc97dca70947360 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(183deg, #f47b51, #ee497c, #671d81); | |
background-size: 600% 600%; | |
-webkit-animation: bg-gradient-change 11s ease infinite; | |
-moz-animation: bg-gradient-change 11s ease infinite; | |
-o-animation: bg-gradient-change 11s ease infinite; | |
animation: bg-gradient-change 11s ease infinite; | |
@-webkit-keyframes bg-gradient-change { | |
0%{background-position:0% 51%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 51%} | |
} | |
@-moz-keyframes bg-gradient-change { | |
0%{background-position:0% 51%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 51%} | |
} | |
@-o-keyframes bg-gradient-change { | |
0%{background-position:0% 51%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 51%} | |
} | |
@keyframes bg-gradient-change { | |
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