Created
March 17, 2020 02:16
Star
You must be signed in to star a gist
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(270deg, #deaa33, #a633de); | |
background-size: 400% 400%; | |
-webkit-animation: AnimationName 5s ease infinite; | |
-moz-animation: AnimationName 5s ease infinite; | |
-o-animation: AnimationName 5s ease infinite; | |
animation: AnimationName 5s ease infinite; | |
@-webkit-keyframes AnimationName { | |
0%{background-position:0% 75%} | |
50%{background-position:100% 26%} | |
100%{background-position:0% 75%} | |
} | |
@-moz-keyframes AnimationName { | |
0%{background-position:0% 75%} | |
50%{background-position:100% 26%} | |
100%{background-position:0% 75%} | |
} | |
@-o-keyframes AnimationName { | |
0%{background-position:0% 75%} | |
50%{background-position:100% 26%} | |
100%{background-position:0% 75%} | |
} | |
@keyframes AnimationName { | |
0%{background-position:0% 75%} | |
50%{background-position:100% 26%} | |
100%{background-position:0% 75%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment