Skip to content

Instantly share code, notes, and snippets.

@GradientAnimator
Created February 26, 2021 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save GradientAnimator/643b7c74237f0c0159b2a596f9725e52 to your computer and use it in GitHub Desktop.
Save GradientAnimator/643b7c74237f0c0159b2a596f9725e52 to your computer and use it in GitHub Desktop.
CSS Gradient Animation
.css-selector {
    background: linear-gradient(19deg, #2ae4ff, #65a8e3, #616fcb, #5d45ba);
    background-size: 800% 800%;
    -webkit-animation: empaer 7s ease infinite;
    -moz-animation: empaer 7s ease infinite;
    -o-animation: empaer 7s ease infinite;
    animation: empaer 7s ease infinite;
}
@-webkit-keyframes empaer {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
}
@-moz-keyframes empaer {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
}
@-o-keyframes empaer {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
}
@keyframes empaer {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
}
@daria-ts
Copy link

gradient for landing

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