Skip to content

Instantly share code, notes, and snippets.

@yano3nora
Created July 2, 2017 09:38
Show Gist options
  • Save yano3nora/281e299914aefb2a4d6a21a334400902 to your computer and use it in GitHub Desktop.
Save yano3nora/281e299914aefb2a4d6a21a334400902 to your computer and use it in GitHub Desktop.
[css: fadeout/fadein] css sample. #css
.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