Skip to content

Instantly share code, notes, and snippets.

Created July 12, 2016 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/f913caeca5d3d56f238cf0f25bab1048 to your computer and use it in GitHub Desktop.
Save anonymous/f913caeca5d3d56f238cf0f25bab1048 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
background: linear-gradient(225deg, #ffffff, #f3f3f3, #dfdfdf, #c3c3c3, #a1a1a1, #565656, #616161, #4e4e4e, #c1c1c1, #414141);
background-size: 2000% 2000%;
-webkit-animation: AnimationName 0s ease infinite;
-moz-animation: AnimationName 0s ease infinite;
-o-animation: AnimationName 0s ease infinite;
animation: AnimationName 0s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 94%}
    50%{background-position:100% 7%}
    100%{background-position:0% 94%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 94%}
    50%{background-position:100% 7%}
    100%{background-position:0% 94%}
}
@-o-keyframes AnimationName {
    0%{background-position:0% 94%}
    50%{background-position:100% 7%}
    100%{background-position:0% 94%}
}
@keyframes AnimationName {
    0%{background-position:0% 94%}
    50%{background-position:100% 7%}
    100%{background-position:0% 94%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment