Skip to content

Instantly share code, notes, and snippets.

@waltzaround
Forked from anonymous/my.css
Created July 12, 2016 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waltzaround/ca6272875b978eb22ffa8d4d2c6eef54 to your computer and use it in GitHub Desktop.
Save waltzaround/ca6272875b978eb22ffa8d4d2c6eef54 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