Skip to content

Instantly share code, notes, and snippets.

@zomars
Forked from anonymous/my.css
Last active February 18, 2016 00:53
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 zomars/ab7a09db64947cb2b346 to your computer and use it in GitHub Desktop.
Save zomars/ab7a09db64947cb2b346 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
background: linear-gradient(1deg, #a24bcf, #cf4b4b, #c0cf4b, #52cf4b, #52cf4b, #4bc5cf, #4b79cf);
background-size: 1400% 1400%;
-webkit-animation: encounterGradient 30s ease infinite;
-moz-animation: encounterGradient 30s ease infinite;
-o-animation: encounterGradient 30s ease infinite;
animation: encounterGradient 30s ease infinite;
@-webkit-keyframes encounterGradient {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
}
@-moz-keyframes encounterGradient {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
}
@-o-keyframes encounterGradient {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
}
@keyframes encounterGradient {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment