Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
chore(docs): revert modal animations tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Oct 19, 2014
1 parent 7f1defe commit 77a9dab
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions docs/styles/main/animations.less
@@ -1,6 +1,7 @@
@import (reference) "../../bower_components/angular-motion/src/fade-and-slide/fade-and-slide.less";
@import (reference) "../../bower_components/angular-motion/src/fade-and-scale/fade-and-scale.less";

.modal {
.modal.disabled {

animation: noop !important;

Expand All @@ -19,7 +20,7 @@
animation-name: fadeAndSlideFromTop;
}
}
&.ng-enter-active {
&.ng-enter-active, &.ng-leave-active {
.modal-dialog {
visibility: visible;
}
Expand All @@ -33,6 +34,35 @@

}

&.am-fade-and-scale {

.modal-dialog {
animation-duration: @fade-and-scale-duration;
animation-timing-function: @fade-and-scale-timing-function;
animation-fill-mode: backwards;
animation-name: fadeAndScaleIn;
}

&.ng-enter {
.modal-dialog {
visibility: hidden;
animation-name: fadeAndScaleIn;
}
}
&.ng-enter-active, &.ng-leave-active {
.modal-dialog {
visibility: visible;
}
}
&.ng-leave {
//@todo
.modal-dialog {
animation-name: fadeAndScaleOut;
}
}

}

}

@keyframes noop {
Expand Down

0 comments on commit 77a9dab

Please sign in to comment.