Last active
March 4, 2023 03:47
-
-
Save texxs/15051c5c437841bcce1b344293576852 to your computer and use it in GitHub Desktop.
Animated, Customizable Color Changing, Gradient Background
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(-45deg, #cbc49f, #ba8f02, #23a6d5, #34E89E); | |
background-repeat: no-repeat; | |
background-attachment: fixed; | |
animation: gradient 35s ease infinite; | |
height: 100vh; | |
} | |
/*///// This was written to be applied to the body tag but in theeory will work on any block element. //////*/ | |
@keyframes gradient { | |
0% { | |
background-position: 0% 50%; | |
} | |
50% { | |
background-position: 100% 50%; | |
} | |
100% { | |
background-position: 0% 50%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment