Skip to content

Instantly share code, notes, and snippets.

@rschwabco
Created May 22, 2014 19:03
Show Gist options
  • Save rschwabco/a9b9292262b00d743f66 to your computer and use it in GitHub Desktop.
Save rschwabco/a9b9292262b00d743f66 to your computer and use it in GitHub Desktop.
Ng-hide animation Sass Mixin
@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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment