Skip to content

Commit 9a2f43a

Browse files
committed
fix(collapse): collapse animation not triggering for build
1 parent be6d943 commit 9a2f43a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1-
import { animate, animation } from '@angular/animations';
1+
import { animate, animation, style } from '@angular/animations';
22

33
export const expandAnimation = animation([
44
animate('{{ time }} {{ easing }}')
55
]);
66

77
export const collapseAnimation = animation([
8-
animate('{{ time }} {{ easing }}')
8+
style({ height: '*', opacity: '*', minHeight: '*' }),
9+
animate('{{ time }} {{ easing }}',
10+
style({ height: 0, opacity: 0, minHeight: 0 })
11+
)
912
]);
1013

1114
export const expandHorizontalAnimation = animation([
1215
animate('{{ time }} {{ easing }}')
1316
]);
1417

1518
export const collapseHorizontalAnimation = animation([
16-
animate('{{ time }} {{ easing }}')
19+
style({ opacity: '*' }),
20+
animate(
21+
'{{ time }} {{ easing }}',
22+
style({ opacity: 0 })
23+
)
1724
]);

0 commit comments

Comments
 (0)