-
-
Save zedejose/97f839a004b9c00daf6598a023477e68 to your computer and use it in GitHub Desktop.
Page loading fade-in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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