.animate-if, .animate-hide {
  &.ng-enter, &.ng-leave {
    -webkit-transition: 1s linear all;
    -moz-transition: 1s linear all;
    -ms-transition: 1s linear all;
    -o-transition: 1s linear all;
    transition: 1s linear all;
  }
  &.ng-enter {
    max-height: 0;
    opacity: 0;
    &.ng-enter-active {
      max-height: 999px;
      opacity: 1;
    }
  }
  &.ng-leave {
    max-height: 999px;
    opacity: 1;
    &.ng-leave-active {
      max-height: 0;
      opacity: 0;
    }
  }
}
