Created
April 22, 2022 20:55
-
-
Save GradientAnimator/38bb34a78906b1c288b93b1f638c15f3 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, #e9418b, #5a4ce0, #37e9e3); | |
background-size: 600% 600%; | |
-webkit-animation: Ripl 3s ease infinite; | |
-moz-animation: Ripl 3s ease infinite; | |
-o-animation: Ripl 3s ease infinite; | |
animation: Ripl 3s ease infinite; | |
} | |
@-webkit-keyframes Ripl { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@-moz-keyframes Ripl { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@-o-keyframes Ripl { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@keyframes Ripl { | |
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