Skip to content

Instantly share code, notes, and snippets.

Created August 4, 2015 05:12
Show Gist options
  • Save anonymous/fdc090f3d4919659be75 to your computer and use it in GitHub Desktop.
Save anonymous/fdc090f3d4919659be75 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
background: linear-gradient(207deg, #10ec6f, #172de1);
background-size: 400% 400%;
-webkit-animation: test 6s ease infinite;
-moz-animation: test 6s ease infinite;
-o-animation: test 6s ease infinite;
animation: test 6s ease infinite;
@-webkit-keyframes test {
    0%{background-position:58% 0%}
    50%{background-position:43% 100%}
    100%{background-position:58% 0%}
}
@-moz-keyframes test {
    0%{background-position:58% 0%}
    50%{background-position:43% 100%}
    100%{background-position:58% 0%}
}
@-o-keyframes test {
    0%{background-position:58% 0%}
    50%{background-position:43% 100%}
    100%{background-position:58% 0%}
}
@keyframes test {
    0%{background-position:58% 0%}
    50%{background-position:43% 100%}
    100%{background-position:58% 0%}
}
@Clarence-pan
Copy link

test gradient colors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment