We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment
Describe the bug :leave or * => void not working
To Reproduce `import {animate, style, transition, trigger} from '@angular/animations';
export const fadeInOutAnimation = trigger('fadeInOut', [ // OK transition(':enter', [ style({opacity: 0}), animate('3s linear', style({opacity: 1})) ]), // KO transition(':leave', [ style({opacity: 1}), animate('3s linear', style({opacity: 0})) ]) ]);`
Expected behavior
Await before removing element from DOM
The text was updated successfully, but these errors were encountered:
Here is a temporary trick:
Don't use ngIf. repalce it by hidden and a variable triggered by animation start and done
<GridLayout [@fadeinout]="openCloseBooleanVar" (@fadeinout.start)="isVisibleBooleanVar= true" (@fadeInOut.done)="isVisibleBooleanVar = openCloseBooleanVar" [hidden]="!isVisibleBooleanVar">
then replace :enter and :leave by * => true and * => false
Really ugly solution but it works
Sorry, something went wrong.
No branches or pull requests
Environment
Describe the bug
:leave or * => void not working
To Reproduce
`import {animate, style, transition, trigger} from '@angular/animations';
export const fadeInOutAnimation = trigger('fadeInOut', [
// OK
transition(':enter', [
style({opacity: 0}),
animate('3s linear', style({opacity: 1}))
]),
// KO
transition(':leave', [
style({opacity: 1}),
animate('3s linear', style({opacity: 0}))
])
]);`
Expected behavior
Await before removing element from DOM
The text was updated successfully, but these errors were encountered: