Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CSS Gradient Animation
.css-selector {
    background: linear-gradient(48deg, #246655, #ff4600, #3e00ff, #fd0062);
    background-size: 800% 800%;
    -webkit-animation: kkk 0s ease infinite;
    -moz-animation: kkk 0s ease infinite;
    -o-animation: kkk 0s ease infinite;
    animation: kkk 0s ease infinite;
}
@-webkit-keyframes kkk {
    0%{background-position:71% 0%}
    50%{background-position:30% 100%}
    100%{background-position:71% 0%}
}
@-moz-keyframes kkk {
    0%{background-position:71% 0%}
    50%{background-position:30% 100%}
    100%{background-position:71% 0%}
}
@-o-keyframes kkk {
    0%{background-position:71% 0%}
    50%{background-position:30% 100%}
    100%{background-position:71% 0%}
}
@keyframes kkk {
    0%{background-position:71% 0%}
    50%{background-position:30% 100%}
    100%{background-position:71% 0%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.