bug: fix routing transition animation 51/95551/1
authorcyuamber <xuranyjy@chinamobile.com>
Thu, 12 Sep 2019 02:54:11 +0000 (10:54 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Thu, 12 Sep 2019 02:56:48 +0000 (10:56 +0800)
Change-Id: I542a75134c622e237d48310ab0c5985c0f34b624
Issue-ID: USECASEUI-306
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/shared/utils/animates.ts

index d5c29b7..86780a3 100644 (file)
@@ -18,17 +18,17 @@ import { trigger, state, style, animate, transition } from '@angular/animations'
 // Routing animation
 export const slideToRight = trigger('routerAnimate', [
     // Define void to indicate empty state
-    state('void', style({ position:'fixed', zIndex:'-1' })), //I don't understand why I want to add a positioning animation to take effect.
+    state('void', style({  })),
     // * Indicates any state
-    state('*', style({ })),
+    state('*', style({})),
     // Admission animation
     transition(':enter', [
-        style({transform: 'translateX(-100%)'}),
+        style({transform: 'translateX(-100%)',position: 'fixed',width: '*'}),
         animate('.5s ease-in-out')
     ]),
     // Opening animation
     transition(':leave', [
-        animate('.5s ease-in-out',  style({transform: 'translateX(100%)'}) )
+        animate('.5s ease-in-out',  style({transform: 'translateX(100%)',position: 'fixed',width:'*' }) )
     ])
 ]);
 // Detail page shows hidden animation