-
-
Save james2doyle/d53a56fdea37ebd14f710630f52e36da 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
body { | |
background: linear-gradient(293deg, #aad8cb, #dc654d, #f7d66c, #372e36, #1a1919); | |
background-size: 1000% 1000%; | |
-webkit-animation: background 30s ease infinite; | |
-moz-animation: background 30s ease infinite; | |
-o-animation: background 30s ease infinite; | |
animation: background 30s ease infinite; | |
height: 1vh; | |
width: 1vw; | |
} | |
@-webkit-keyframes background { | |
0%{background-position:96% 0%} | |
50%{background-position:5% 100%} | |
100%{background-position:96% 0%} | |
} | |
@-moz-keyframes background { | |
0%{background-position:96% 0%} | |
50%{background-position:5% 100%} | |
100%{background-position:96% 0%} | |
} | |
@-o-keyframes background { | |
0%{background-position:96% 0%} | |
50%{background-position:5% 100%} | |
100%{background-position:96% 0%} | |
} | |
@keyframes background { | |
0%{background-position:96% 0%} | |
50%{background-position:5% 100%} | |
100%{background-position:96% 0%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment