Created
January 17, 2016 15:21
-
-
Save AllThingsSmitty/17f8479cd7e74ee2f8f8 to your computer and use it in GitHub Desktop.
Animated background color shift
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
/* based on dbox.us */ | |
body { | |
background: linear-gradient(238deg, #fd8800, #fd008f, #9700fd, #003dfd, #05c7e6, #4bd58d); | |
background-size: 1200% 1200%; | |
-webkit-animation: rainbow 30s ease infinite; | |
animation: rainbow 30s ease infinite; | |
} | |
@-webkit-keyframes rainbow { | |
0% { background-position: 0% 50% } | |
50% { background-position: 100% 50% } | |
100% { background-position: 0% 50% } | |
} | |
@keyframes rainbow { | |
0% { background-position: 0% 50% } | |
50% { background-position: 100% 50% } | |
100% { background-position: 0% 50% } | |
} |
Thank you!
Yo..................... Thank you......................
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice! Thanks a lot!