Created
September 25, 2017 12:46
-
-
Save topleague/63dbe2ea9054d7aad5a22505f1a52757 to your computer and use it in GitHub Desktop.
Fadeup Effect with JS
This file contains hidden or 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
/* 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