Skip to content

Instantly share code, notes, and snippets.

@topleague
Created September 25, 2017 12:46
Show Gist options
  • Save topleague/63dbe2ea9054d7aad5a22505f1a52757 to your computer and use it in GitHub Desktop.
Save topleague/63dbe2ea9054d7aad5a22505f1a52757 to your computer and use it in GitHub Desktop.
Fadeup Effect with JS
/* Fadeup Effect
---------------------------------------------------------------------------------------------------- */
.js .fadeup-effect {
opacity: 0;
overflow: hidden;
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
}
@-webkit-keyframes fadeInUp {
from {
opacity: 0;
-webkit-transform: translateY(20px);
}
to {
opacity: 1;
-webkit-transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
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