Created
November 5, 2020 22:49
-
-
Save GradientAnimator/a871153927545a77d01528b36cc1fa9f 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(160deg, #ff4ff5, #ca63ff, #f74a4a, #ffefef); | |
background-size: 800% 800%; | |
-webkit-animation: racer161Background 8s ease infinite; | |
-moz-animation: racer161Background 8s ease infinite; | |
-o-animation: racer161Background 8s ease infinite; | |
animation: racer161Background 8s ease infinite; | |
} | |
@-webkit-keyframes racer161Background { | |
0%{background-position:82% 0%} | |
50%{background-position:19% 100%} | |
100%{background-position:82% 0%} | |
} | |
@-moz-keyframes racer161Background { | |
0%{background-position:82% 0%} | |
50%{background-position:19% 100%} | |
100%{background-position:82% 0%} | |
} | |
@-o-keyframes racer161Background { | |
0%{background-position:82% 0%} | |
50%{background-position:19% 100%} | |
100%{background-position:82% 0%} | |
} | |
@keyframes racer161Background { | |
0%{background-position:82% 0%} | |
50%{background-position:19% 100%} | |
100%{background-position:82% 0%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Made a quick animated background from my twitch stream