Created
April 11, 2019 00:04
-
-
Save pingram3541/5d0d85d18bb3543af5d78b8366713314 to your computer and use it in GitHub Desktop.
Background 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
#gradient { | |
background: linear-gradient(-45deg,#ee7752,#e73c7e,#23a6d5,#23d5ab); | |
background-size: 400% 400%; | |
-webkit-animation: Gradient 15s ease infinite; | |
-moz-animation: Gradient 15s ease infinite; | |
animation: Gradient 15s ease infinite; | |
} | |
@-webkit-keyframes Gradient { | |
0% { | |
background-position: 0 50% | |
} | |
50% { | |
background-position: 100% 50% | |
} | |
100% { | |
background-position: 0 50% | |
} | |
} | |
@-moz-keyframes Gradient { | |
0% { | |
background-position: 0 50% | |
} | |
50% { | |
background-position: 100% 50% | |
} | |
100% { | |
background-position: 0 50% | |
} | |
} | |
@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