From bc2fc44bcfe19046355157589fc63d15ebfc6a44 Mon Sep 17 00:00:00 2001 From: sercan Date: Wed, 20 Mar 2019 13:32:46 +0300 Subject: [PATCH] (Animations) Added *ngIf support to the fadeInOut animation --- src/@fuse/animations/index.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/@fuse/animations/index.ts b/src/@fuse/animations/index.ts index a33c80aa..df57ddbd 100644 --- a/src/@fuse/animations/index.ts +++ b/src/@fuse/animations/index.ts @@ -51,16 +51,17 @@ export const fuseAnimations = [ ]), trigger('fadeInOut', [ - state('0', style({ + state('0, void', style({ display: 'none', opacity: 0 })), - state('1', style({ + state('1, *', style({ display: 'block', opacity: 1 })), transition('1 => 0', animate('300ms ease-out')), - transition('0 => 1', animate('300ms ease-in')) + transition('0 => 1', animate('300ms ease-in')), + transition('void <=> *', animate('300ms ease-in')) ]), trigger('slideInOut', [ @@ -190,7 +191,7 @@ export const fuseAnimations = [ // ----------------------------------------------------------------------------------------------------- // @ Router animations // ----------------------------------------------------------------------------------------------------- - + trigger('routerTransitionLeft', [ transition('* => *', [