Skip to content

Instantly share code, notes, and snippets.

@thatjeannie
Last active August 29, 2015 14:19
Show Gist options
  • Save thatjeannie/d05b85b84f9d3a0f20f8 to your computer and use it in GitHub Desktop.
Save thatjeannie/d05b85b84f9d3a0f20f8 to your computer and use it in GitHub Desktop.
pop in css animation
@-webkit-keyframes pop-in {
0% { opacity: 0; }
1% { opacity: 0; -webkit-transform: scale(0.98) translateY(-30px); }
80% { -webkit-transform: scale(1); }
100% { -webkit-transform: translateY(0); }
}
@-moz-keyframes pop-in {
0% { opacity: 0; }
1% { opacity: 0; -moz-transform: scale(0.98) translateY(-30px); }
80% { -moz-transform: scale(1); }
100% { -moz-transform: translateY(0); }
}
@-o-keyframes pop-in {
0% { opacity: 0; }
1% { opacity: 0; -o-transform: scale(0.98) translateY(-30px); }
80% { -o-transform: scale(1); }
100% { -o-transform: translateY(0); }
}
@keyframes pop-in {
0% { opacity: 0; }
1% { opacity: 0; transform: scale(0.98) translateY(-30px); }
80% { transform: scale(1); }
100% { transform: translateY(0); }
}
.pop-in {
-webkit-animation: pop-in .34s ease-in;
-moz-animation: pop-in .34s ease-in;
-o-animation: pop-in .34s ease-in;
animation: pop-in .34s ease-in;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment