Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MuhammedAlkhudiry/9ec6ffc436947480efcff154150dc11b to your computer and use it in GitHub Desktop.
Save MuhammedAlkhudiry/9ec6ffc436947480efcff154150dc11b to your computer and use it in GitHub Desktop.
scale fade animation
.fade-in {
animation: fade-in .2s ease-in-out;
animation-fill-mode: forwards;
opacity: 0;
transform: scale(0.96);
}
@keyframes fade-in {
100% {
transform: scale(1);
opacity: 1;
}
}
.fade-out {
animation: fade-out .2s ease-in-out;
animation-fill-mode: forwards;
transform: scale(1);
opacity: 1;
}
@keyframes fade-out {
100% {
transform: scale(0.96);
opacity: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment