diff options
Diffstat (limited to 'src/ng/directive/ngSwitch.js')
| -rw-r--r-- | src/ng/directive/ngSwitch.js | 26 | 
1 files changed, 9 insertions, 17 deletions
| diff --git a/src/ng/directive/ngSwitch.js b/src/ng/directive/ngSwitch.js index b67aa904..11ef7b71 100644 --- a/src/ng/directive/ngSwitch.js +++ b/src/ng/directive/ngSwitch.js @@ -54,9 +54,9 @@          <hr/>          <div class="animate-switch-container"            ng-switch on="selection"> -            <div ng-switch-when="settings">Settings Div</div> -            <div ng-switch-when="home">Home Span</div> -            <div ng-switch-default>default</div> +            <div class="animate-switch" ng-switch-when="settings">Settings Div</div> +            <div class="animate-switch" ng-switch-when="home">Home Span</div> +            <div class="animate-switch" ng-switch-default>default</div>          </div>        </div>      </file> @@ -75,15 +75,12 @@          overflow:hidden;        } -      .animate-switch-container > div { +      .animate-switch {          padding:10px;        } -      .animate-switch-container > .ng-enter, -      .animate-switch-container > .ng-leave { +      .animate-switch.ng-animate {          -webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s; -        -moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s; -        -o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;          transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;          position:absolute; @@ -93,19 +90,14 @@          bottom:0;        } -      .animate-switch-container > .ng-enter { +      .animate-switch.ng-leave.ng-leave-active, +      .animate-switch.ng-enter {          top:-50px;        } -      .animate-switch-container > .ng-enter.ng-enter-active { +      .animate-switch.ng-leave, +      .animate-switch.ng-enter.ng-enter-active {          top:0;        } - -      .animate-switch-container > .ng-leave { -        top:0; -      } -      .animate-switch-container > .ng-leave.ng-leave-active { -        top:50px; -      }      </file>      <file name="scenario.js">        it('should start in settings', function() { | 
