Skip to content

Instantly share code, notes, and snippets.

@iddar
Created June 9, 2020 16:34
Show Gist options
  • Save iddar/634c1057a0f65876366da14aae272be3 to your computer and use it in GitHub Desktop.
Save iddar/634c1057a0f65876366da14aae272be3 to your computer and use it in GitHub Desktop.
@keyframes backInRight {
0% {
transform: translateX(400px) scale(1);
opacity: 0.7;
}
80% {
transform: translateX(0px) scale(1);
opacity: 0.7;
}
100% {
transform: scale(1);
opacity: 1;
}
}
.backInRight {
animation: backInRight 0.5s ease forwards;
}
@keyframes backOutRight {
0% {
transform: translateX(0px) scale(1);
opacity: 1;
}
80% {
transform: translateX(-400px) scale(.7);
opacity: 0.5;
}
100% {
transform: scale(.5);
opacity: 0;
}
}
.backOutRight {
animation: backOutRight 0.5s ease forwards;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment