Skip to content

Instantly share code, notes, and snippets.

@zhuzhuaicoding
Created January 19, 2017 06:06
Show Gist options
  • Save zhuzhuaicoding/8c02c065157e6ff5e63507fcfbe7d9a9 to your computer and use it in GitHub Desktop.
Save zhuzhuaicoding/8c02c065157e6ff5e63507fcfbe7d9a9 to your computer and use it in GitHub Desktop.
.anim-fill-both {
animation-fill-mode: forwards;
}
//animations
@keyframes pop {
0% {
transform: scale(0.9) translateZ(0);
}
100% {
transform: scale(1) translateZ(0);
}
}
.pop {
animation-name: pop;
@extend .anim-fill-both;
}
@keyframes unpop {
0% {
transform: scale(1) translateZ(0);
}
100% {
transform: scale(0.9) translateZ(0);
}
}
.unpop {
animation-name: unpop;
@extend .anim-fill-both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment