Created
July 24, 2024 07:08
-
-
Save GradientAnimator/fa8f8be554484582f634ac806fde5dc1 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(181deg, #a826d7, #2836bf); | |
background-size: 400% 400%; | |
-webkit-animation: workerlly 15s ease infinite; | |
-moz-animation: workerlly 15s ease infinite; | |
-o-animation: workerlly 15s ease infinite; | |
animation: workerlly 15s ease infinite; | |
} | |
@-webkit-keyframes workerlly { | |
0%{background-position:48% 0%} | |
50%{background-position:53% 100%} | |
100%{background-position:48% 0%} | |
} | |
@-moz-keyframes workerlly { | |
0%{background-position:48% 0%} | |
50%{background-position:53% 100%} | |
100%{background-position:48% 0%} | |
} | |
@-o-keyframes workerlly { | |
0%{background-position:48% 0%} | |
50%{background-position:53% 100%} | |
100%{background-position:48% 0%} | |
} | |
@keyframes workerlly { | |
0%{background-position:48% 0%} | |
50%{background-position:53% 100%} | |
100%{background-position:48% 0%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment