Created
May 25, 2014 17:30
-
-
Save dtothefp/fee7b8b15c56de30065e to your computer and use it in GitHub Desktop.
Angular Animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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