Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • 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