У меня есть одна анимация в angular fadein / fadeout, она работает нормально, прежде чем я обновлю angular v6 до v7.Мой код:
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss',
],
animations: [
trigger('hideShowAnimator', [
state('true', style({ opacity: 1, display: 'block' })),
state('false', style({ opacity: 0, display: 'none' })),
transition('0 => 1', animate('200ms ease-in')),
transition('1 => 0', animate('200ms ease-out'))
])
],
})
Итак, я применяю в своем div:
<div [@hideShowAnimator]="abreNotificacoes" id="cardNotificacao" class="card">
...
<i (click)="abreNotificacoes = !abreNotificacoes"></i>
Теперь работает только мой fadeOut.почему?