Forked from GradientAnimator/Purple-1662557411474-270.css
Created
September 7, 2022 13:31
-
-
Save RichardUUU/ca039a08d54cb422b540a0d0ca7e3d72 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
This file contains hidden or 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(228deg, #2e45c2, #d60141, #2e45c2); | |
background-size: 600% 600%; | |
-webkit-animation: Purple 17s ease infinite; | |
-moz-animation: Purple 17s ease infinite; | |
-o-animation: Purple 17s ease infinite; | |
animation: Purple 17s ease infinite; | |
} | |
@-webkit-keyframes Purple { | |
0%{background-position:72% 0%} | |
50%{background-position:29% 100%} | |
100%{background-position:72% 0%} | |
} | |
@-moz-keyframes Purple { | |
0%{background-position:72% 0%} | |
50%{background-position:29% 100%} | |
100%{background-position:72% 0%} | |
} | |
@-o-keyframes Purple { | |
0%{background-position:72% 0%} | |
50%{background-position:29% 100%} | |
100%{background-position:72% 0%} | |
} | |
@keyframes Purple { | |
0%{background-position:72% 0%} | |
50%{background-position:29% 100%} | |
100%{background-position:72% 0%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment