Skip to content

Instantly share code, notes, and snippets.

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 azaslavsky/5be5547c8cec09633120 to your computer and use it in GitHub Desktop.
Save azaslavsky/5be5547c8cec09633120 to your computer and use it in GitHub Desktop.
@mixin angular-animate-hide($duration,$property,$easing,$min-val,$max-val){
transition :$duration $property $easing;
&.ng-hide-add,&.ng-hide-remove{
display: block !important;
#{$property}: $min-val;
}
&.ng-hide-remove.ng-hide-remove-active{
#{$property}: $max-val;
}
&.ng-hide-add{
#{$property}: $max-val;
}
&.ng-hide-add.ng-hide-add-active {
#{$property}: $min-val;
}
}
@azaslavsky
Copy link
Author

Updated to support ng-leave and ng-enter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment