You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
347 B
TypeScript
14 lines
347 B
TypeScript
4 years ago
|
import { animate, style, transition, trigger } from '@angular/animations';
|
||
|
|
||
|
export const opacityAnimation = [
|
||
|
trigger('opacityAnimation', [
|
||
|
transition(':enter', [
|
||
|
style({ opacity: 0 }),
|
||
|
animate('1000ms ease-in', style({ opacity: 1 }))
|
||
|
]),
|
||
|
transition(':leave', [
|
||
|
animate('0ms', style({ opacity: 0 }))
|
||
|
])
|
||
|
])
|
||
|
];
|