1 | import { animate, style } from '@angular/animations';
|
2 | export const COLLAPSE_ANIMATION_TIMING = '400ms cubic-bezier(0.4,0.0,0.2,1)';
|
3 | export const expandAnimation = [
|
4 | style({ height: 0, visibility: 'hidden' }),
|
5 | animate(COLLAPSE_ANIMATION_TIMING, style({ height: '*', visibility: 'visible' }))
|
6 | ];
|
7 | export const collapseAnimation = [
|
8 | style({ height: '*', visibility: 'visible' }),
|
9 | animate(COLLAPSE_ANIMATION_TIMING, style({ height: 0, visibility: 'hidden' }))
|
10 | ];
|
11 |
|
\ | No newline at end of file |