Skip to content

Instantly share code, notes, and snippets.

@topleague
Last active September 25, 2017 13:08
Show Gist options
  • Save topleague/e70643590a31b299049df2ce3cc181ac to your computer and use it in GitHub Desktop.
Save topleague/e70643590a31b299049df2ce3cc181ac to your computer and use it in GitHub Desktop.
Styling for FadeUp Animation in Genesis
/* Animate Site Container - Keyframes
------------------------------------------------------------ */
.animate-site-container {
animation-delay: .7s;
animation-duration: 1s;
animation-fill-mode: both;
}
/* fadeIn
------------------------------------------- */
@-webkit-keyframes fadeIn {
0% {opacity: 0;}
100% {opacity: 1;}
}
@keyframes fadeIn {
0% {opacity: 0;}
100% {opacity: 1;}
}
.fadeIn {
-webkit-animation-name: fadeIn;
animation-name: fadeIn;
}
/* fadeInUp
------------------------------------------- */
@-webkit-keyframes fadeInUp {
0% {opacity: 0;-webkit-transform: translateY(20px);}
100% {opacity: 1;-webkit-transform: translateY(0);}
}
@keyframes fadeInUp {
0% {opacity: 0;transform: translateY(20px);}
100% {opacity: 1;transform: translateY(0);}
}
.fadeInUp {
-webkit-animation-name: fadeInUp;
animation-name: fadeInUp;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment