Created
September 3, 2020 19:41
-
-
Save GradientAnimator/efc06e01001c7f85b03dcb3fb05fc0d6 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
.css-selector { | |
background: linear-gradient(247deg, #66d5f7, #28b4c7, #2c93e8, #76c1ff); | |
background-size: 800% 800%; | |
-webkit-animation: AnimationName 16s ease infinite; | |
-moz-animation: AnimationName 16s ease infinite; | |
-o-animation: AnimationName 16s ease infinite; | |
animation: AnimationName 16s ease infinite; | |
} | |
@-webkit-keyframes AnimationName { | |
0%{background-position:0% 78%} | |
50%{background-position:100% 23%} | |
100%{background-position:0% 78%} | |
} | |
@-moz-keyframes AnimationName { | |
0%{background-position:0% 78%} | |
50%{background-position:100% 23%} | |
100%{background-position:0% 78%} | |
} | |
@-o-keyframes AnimationName { | |
0%{background-position:0% 78%} | |
50%{background-position:100% 23%} | |
100%{background-position:0% 78%} | |
} | |
@keyframes AnimationName { | |
0%{background-position:0% 78%} | |
50%{background-position:100% 23%} | |
100%{background-position:0% 78%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment