Forked from GradientAnimator/hero-home-1715186838113-378.css
Last active
May 8, 2024 21:04
-
-
Save escapist/f6593d7442b89d898ec2b2616d390639 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
.header { | |
background: linear-gradient(127deg, rgba(16,16,14,1), rgba(47,14,201,1), rgb(193 47 55), rgba(82,12,51,1), rgb(27 160 159)); | |
background-size: 250% 500%; | |
-webkit-animation: hero-home 30s ease infinite; | |
-moz-animation: hero-home 30s ease infinite; | |
-o-animation: hero-home 30s ease infinite; | |
animation: hero-home 30s ease infinite; | |
} | |
@-webkit-keyframes hero-home { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@-moz-keyframes hero-home { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@-o-keyframes hero-home { | |
0%{background-position:0% 50%} | |
50%{background-position:100% 50%} | |
100%{background-position:0% 50%} | |
} | |
@keyframes hero-home { | |
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