Skip to content

Instantly share code, notes, and snippets.

@dtothefp
Created May 25, 2014 17:30
Show Gist options
  • Save dtothefp/fee7b8b15c56de30065e to your computer and use it in GitHub Desktop.
Save dtothefp/fee7b8b15c56de30065e to your computer and use it in GitHub Desktop.
Angular Animation
.sharer-message-container {
// finished state when visible
position: absolute;
top: 0%;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
z-index: 100;
padding: 20px 10px;
&.ng-hide-add, &.ng-hide-remove {
// quality of the transition
transition: 0.5s linear all;
display:block!important;
}
&.ng-hide-add {
// state at beginning of hiding
top: 0%;
}
&.ng-hide-add.ng-hide-add-active {
// finished state we are moving towards
top: 100%;
}
&.ng-hide-remove {
// beginning hidden state moving towards visible
top: 100%;
}
&.ng-hide-remove.ng-hide-remove-active {
// becoming visible, what we are moving towards
top: 0%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment