Skip to content

Instantly share code, notes, and snippets.

@hugobaeta
Created July 25, 2017 21:51
Show Gist options
  • Save hugobaeta/f3e8694ca379af8c1dc12a1e48f0966d to your computer and use it in GitHub Desktop.
Save hugobaeta/f3e8694ca379af8c1dc12a1e48f0966d to your computer and use it in GitHub Desktop.
Page loading fade-in
@keyframes fadein {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* Each element you want to fade in in sequence should have a incremental delay in the animation - more here: https://developer.mozilla.org/en-US/docs/Web/CSS/animation */
.site-header {
animation: fadein .5s ease-in backwards;
}
.site-content {
animation: fadein .5s ease-in .25s backwards;
}
.site-footer {
animation: fadein .5s ease-in .5s backwards;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment