Skip to content

Instantly share code, notes, and snippets.

Created December 13, 2013 23:41
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 anonymous/bc53b32c191fab86c16c to your computer and use it in GitHub Desktop.
Save anonymous/bc53b32c191fab86c16c to your computer and use it in GitHub Desktop.
//Animating a user in
.carousel-animate-in {
.round-pic-frame { /* Bubble displaying the users photo */
-webkit-animation: carousel-user-photo-in .6s ease-out forwards;
-moz-animation: carousel-user-photo-in .6s ease-out forwards;
-o-animation: carousel-user-photo-in .6s ease-out forwards;
animation: carousel-user-photo-in .6s ease-out forwards;
}
//... more animations
}
@-webkit-keyframes carousel-user-photo-in {
0% {
-webkit-transform: translate(-150%, 25%) scale(.1);
}
100% {
-webkit-transform: translate(0, 0) scale(1);
}
}
//Animating a user out
.carousel-animate-out {
.round-pic-frame { /* Bubble displaying the users photo */
-webkit-animation: carousel-user-photo-out .2s ease-in .05s forwards;
-moz-animation: carousel-user-photo-out .2s ease-in .05s forwards;
-o-animation: carousel-user-photo-out .2s ease-in .05s forwards;
animation: carousel-user-photo-out .2s ease-in .05s forwards;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment