Created
July 2, 2017 09:38
-
-
Save yano3nora/281e299914aefb2a4d6a21a334400902 to your computer and use it in GitHub Desktop.
[css: fadeout/fadein] css sample. #css
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
.fadeOut { | |
animation : fadeOut 0.1s; | |
animation-fill-mode: both; | |
} | |
@keyframes fadeOut { | |
0% { | |
opacity: 1; | |
height: initial; | |
} | |
100% { | |
opacity: 0; | |
height: 0px; | |
} | |
} | |
.fadeIn { | |
animation : fadeIn 0.1s; | |
animation-fill-mode: both; | |
} | |
@keyframes fadeIn { | |
0% { | |
opacity: 0; | |
height: 0px; | |
} | |
100% { | |
opacity: 1; | |
height: initial; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment