Created
December 6, 2015 23:23
-
-
Save anonymous/74ee718ddc93b785eb29 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(138deg, #2dc39d, #4082c9); | |
background-size: 400% 400%; | |
-webkit-animation: MoveBG 6s ease infinite; | |
-moz-animation: MoveBG 6s ease infinite; | |
-o-animation: MoveBG 6s ease infinite; | |
animation: MoveBG 6s ease infinite; | |
@-webkit-keyframes MoveBG { | |
0%{background-position:50% 0%} | |
50%{background-position:50% 100%} | |
100%{background-position:50% 0%} | |
} | |
@-moz-keyframes MoveBG { | |
0%{background-position:50% 0%} | |
50%{background-position:50% 100%} | |
100%{background-position:50% 0%} | |
} | |
@-o-keyframes MoveBG { | |
0%{background-position:50% 0%} | |
50%{background-position:50% 100%} | |
100%{background-position:50% 0%} | |
} | |
@keyframes MoveBG { | |
0%{background-position:50% 0%} | |
50%{background-position:50% 100%} | |
100%{background-position:50% 0%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment