(Animations) Added *ngIf support to the fadeInOut animation

This commit is contained in:
sercan 2019-03-20 13:32:46 +03:00
parent 4ce34b2234
commit bc2fc44bcf

View File

@ -51,16 +51,17 @@ export const fuseAnimations = [
]), ]),
trigger('fadeInOut', [ trigger('fadeInOut', [
state('0', style({ state('0, void', style({
display: 'none', display: 'none',
opacity: 0 opacity: 0
})), })),
state('1', style({ state('1, *', style({
display: 'block', display: 'block',
opacity: 1 opacity: 1
})), })),
transition('1 => 0', animate('300ms ease-out')), 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', [ trigger('slideInOut', [