Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save escapist/f6593d7442b89d898ec2b2616d390639 to your computer and use it in GitHub Desktop.
Save escapist/f6593d7442b89d898ec2b2616d390639 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
.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