Skip to content

Instantly share code, notes, and snippets.

@sibsfinx
Last active August 29, 2015 14:26
Show Gist options
  • Save sibsfinx/e09d6bc29d81566f38f0 to your computer and use it in GitHub Desktop.
Save sibsfinx/e09d6bc29d81566f38f0 to your computer and use it in GitHub Desktop.
avatars animation
$transition-bounce: cubic-bezier(0.405, 1.510, 1.000, 0.915)
.messages-list
+translate3d(0,0,0)
.message-box-user-avatar
display: inline-block
position: relative
padding-right: 10px
&, &:focus, &:hover
text-decoration: none
.conference-message-box &
.message-box-user-avatar-image + .message-box-user-avatar-image
margin:
top: - $user-avatar-width-md
bottom: 4px
border: 1px solid rgba(#fff, 0.5)
box-shadow: 0 1px 4px rgba(#000, 0.2)
transition: opacity 0.2s $transition-bounce, margin 0.2s $transition-bounce
transition-delay: 0.3s
&:hover
.message-box-user-avatar-image + .message-box-user-avatar-image
margin-top: - $user-avatar-width-md/2
transition-delay: 0
.message-box-user-avatar-more
opacity: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment