Skip to content

Instantly share code, notes, and snippets.

@Rolograaf
Forked from anonymous/my.css
Created February 16, 2016 19:38
Show Gist options
  • Save Rolograaf/f6fc44c106002646bcbc to your computer and use it in GitHub Desktop.
Save Rolograaf/f6fc44c106002646bcbc to your computer and use it in GitHub Desktop.
CSS Gradient Animation
background: linear-gradient(147deg, #336699, #dde71d);
background-size: 400% 400%;
-webkit-animation: AnimationRolograafBackground 3s ease infinite;
-moz-animation: AnimationRolograafBackground 3s ease infinite;
-o-animation: AnimationRolograafBackground 3s ease infinite;
animation: AnimationRolograafBackground 3s ease infinite;
@-webkit-keyframes AnimationRolograafBackground {
    0%{background-position:0% 5%}
    50%{background-position:100% 96%}
    100%{background-position:0% 5%}
}
@-moz-keyframes AnimationRolograafBackground {
    0%{background-position:0% 5%}
    50%{background-position:100% 96%}
    100%{background-position:0% 5%}
}
@-o-keyframes AnimationRolograafBackground {
    0%{background-position:0% 5%}
    50%{background-position:100% 96%}
    100%{background-position:0% 5%}
}
@keyframes AnimationRolograafBackground {
    0%{background-position:0% 5%}
    50%{background-position:100% 96%}
    100%{background-position:0% 5%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment