routing
This commit is contained in:
13
WEB/src/app/songs/services/animation.ts
Normal file
13
WEB/src/app/songs/services/animation.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import {animate, style, transition, trigger} from '@angular/animations';
|
||||
|
||||
export const blend = trigger('blend', [
|
||||
transition(':enter', [
|
||||
style({opacity: 0, display: 'none'}),
|
||||
animate('400ms', style({opacity: 0, display: 'none'})),
|
||||
animate('300ms', style({opacity: 1, display: 'block'}))
|
||||
]),
|
||||
transition(':leave', [
|
||||
style({opacity: 1, display: 'block'}),
|
||||
animate('300ms', style({opacity: 0, display: 'none'}))
|
||||
])
|
||||
]);
|
||||
Reference in New Issue
Block a user