Skip to content

Instantly share code, notes, and snippets.

@michelmany
Created April 7, 2016 21:07
Show Gist options
  • Save michelmany/c749dde05494064801178b9e444c7f97 to your computer and use it in GitHub Desktop.
Save michelmany/c749dde05494064801178b9e444c7f97 to your computer and use it in GitHub Desktop.
Animação de bg css3 degrade
background: linear-gradient(180deg, #6b1ba6, #a618bd);
background-size: 400% 400%;
-webkit-animation: BgFoliaAnimator 30s ease infinite;
-moz-animation: BgFoliaAnimator 30s ease infinite;
-o-animation: BgFoliaAnimator 30s ease infinite;
animation: BgFoliaAnimator 30s ease infinite;
@-webkit-keyframes BgFoliaAnimator {
0%{background-position:65% 0%}
50%{background-position:36% 100%}
100%{background-position:65% 0%}
}
@-moz-keyframes BgFoliaAnimator {
0%{background-position:65% 0%}
50%{background-position:36% 100%}
100%{background-position:65% 0%}
}
@-o-keyframes BgFoliaAnimator {
0%{background-position:65% 0%}
50%{background-position:36% 100%}
100%{background-position:65% 0%}
}
@keyframes BgFoliaAnimator {
0%{background-position:65% 0%}
50%{background-position:36% 100%}
100%{background-position:65% 0%}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment