Skip to content

Instantly share code, notes, and snippets.

@gunjanpatel
Created October 29, 2017 10:34
Show Gist options
  • Save gunjanpatel/afa003a671c796bd20615eb874b4506a to your computer and use it in GitHub Desktop.
Save gunjanpatel/afa003a671c796bd20615eb874b4506a to your computer and use it in GitHub Desktop.
CSS Background Animation
background: linear-gradient(324deg, #664c24, #3a6624, #313dc9, #7b55cf);
background-size: 800% 800%;
-webkit-animation: AnimationName 11s ease infinite;
-moz-animation: AnimationName 11s ease infinite;
-o-animation: AnimationName 11s ease infinite;
animation: AnimationName 11s ease infinite;
@-webkit-keyframes AnimationName {
0%{background-position:0% 51%}
50%{background-position:100% 50%}
100%{background-position:0% 51%}
}
@-moz-keyframes AnimationName {
0%{background-position:0% 51%}
50%{background-position:100% 50%}
100%{background-position:0% 51%}
}
@-o-keyframes AnimationName {
0%{background-position:0% 51%}
50%{background-position:100% 50%}
100%{background-position:0% 51%}
}
@keyframes AnimationName {
0%{background-position:0% 51%}
50%{background-position:100% 50%}
100%{background-position:0% 51%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment