Settings Div
Home Span
@@ -67,7 +66,20 @@
}
- .animate-switch > * {
+ .animate-switch-container {
+ position:relative;
+ background:white;
+ border:1px solid black;
+ height:40px;
+ overflow:hidden;
+ }
+
+ .animate-switch-container > div {
+ padding:10px;
+ }
+
+ .animate-switch-container > .ng-enter,
+ .animate-switch-container > .ng-leave {
-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;
@@ -80,22 +92,17 @@
bottom:0;
}
- .example-animate-container > * {
- display:block;
- padding:10px;
- }
-
- .animate-switch > .ng-enter {
+ .animate-switch-container > .ng-enter {
top:-50px;
}
- .animate-switch > .ng-enter.ng-enter-active {
+ .animate-switch-container > .ng-enter.ng-enter-active {
top:0;
}
- .animate-switch > .ng-leave {
+ .animate-switch-container > .ng-leave {
top:0;
}
- .animate-switch > .ng-leave.ng-leave-active {
+ .animate-switch-container > .ng-leave.ng-leave-active {
top:50px;
}
diff --git a/src/ngRoute/directive/ngView.js b/src/ngRoute/directive/ngView.js
index 2ca41897..6a1f2012 100644
--- a/src/ngRoute/directive/ngView.js
+++ b/src/ngRoute/directive/ngView.js
@@ -61,10 +61,21 @@ ngRouteModule.directive('ngView', ngViewFactory);
- .view-example {
+ .example-animate-container {
+ position:relative;
+ background:white;
+ border:1px solid black;
+ height:40px;
+ overflow:hidden;
+ }
+
+ .example-animate-container > div {
+ padding:10px;
+ }
+
+ .view-example.ng-enter, .view-example.ng-leave {
-webkit-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
-moz-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
- -ms-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
-o-transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s;
--
cgit v1.2.3