Forked from GradientAnimator/zetroubg-1640541957514-852.css
Created
December 26, 2021 18:09
-
-
Save Tyler887/da3c9a3cfd84e6cf259de6a377cbd6fd 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(270deg, #18181b, #a3a3a3); | |
background-size: 400% 400%; | |
-webkit-animation: zetroubg 30s ease infinite; | |
-moz-animation: zetroubg 30s ease infinite; | |
-o-animation: zetroubg 30s ease infinite; | |
animation: zetroubg 30s ease infinite; | |
} | |
@-webkit-keyframes zetroubg { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@-moz-keyframes zetroubg { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@-o-keyframes zetroubg { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@keyframes zetroubg { | |
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