Created
February 26, 2021 21:12
-
-
Save GradientAnimator/643b7c74237f0c0159b2a596f9725e52 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(19deg, #2ae4ff, #65a8e3, #616fcb, #5d45ba); | |
background-size: 800% 800%; | |
-webkit-animation: empaer 7s ease infinite; | |
-moz-animation: empaer 7s ease infinite; | |
-o-animation: empaer 7s ease infinite; | |
animation: empaer 7s ease infinite; | |
} | |
@-webkit-keyframes empaer { | |
0%{background-position:50% 0%} | |
50%{background-position:51% 100%} | |
100%{background-position:50% 0%} | |
} | |
@-moz-keyframes empaer { | |
0%{background-position:50% 0%} | |
50%{background-position:51% 100%} | |
100%{background-position:50% 0%} | |
} | |
@-o-keyframes empaer { | |
0%{background-position:50% 0%} | |
50%{background-position:51% 100%} | |
100%{background-position:50% 0%} | |
} | |
@keyframes empaer { | |
0%{background-position:50% 0%} | |
50%{background-position:51% 100%} | |
100%{background-position:50% 0%} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gradient for landing