Skip to content

Instantly share code, notes, and snippets.

@mrhammadasif
Forked from anonymous/my.css
Created January 22, 2016 09:22
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 mrhammadasif/69f54e96744b21deec4c to your computer and use it in GitHub Desktop.
Save mrhammadasif/69f54e96744b21deec4c to your computer and use it in GitHub Desktop.
CSS Gradient Animation
background: linear-gradient(313deg, #000000, #5f5f5f);
background-size: 400% 400%;
-webkit-animation: AnimationName 16s ease infinite;
-moz-animation: AnimationName 16s ease infinite;
-o-animation: AnimationName 16s ease infinite;
animation: AnimationName 16s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 61%}
    50%{background-position:100% 40%}
    100%{background-position:0% 61%}
}
@-moz-keyframes AnimationName {
    0%{background-position:0% 61%}
    50%{background-position:100% 40%}
    100%{background-position:0% 61%}
}
@-o-keyframes AnimationName {
    0%{background-position:0% 61%}
    50%{background-position:100% 40%}
    100%{background-position:0% 61%}
}
@keyframes AnimationName {
    0%{background-position:0% 61%}
    50%{background-position:100% 40%}
    100%{background-position:0% 61%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment