File tree 1 file changed +21
-8
lines changed
projects/angular-calendar/src/modules/month
1 file changed +21
-8
lines changed Original file line number Diff line number Diff line change 8
8
import {
9
9
trigger ,
10
10
style ,
11
+ state ,
11
12
transition ,
12
13
animate ,
13
14
AnimationTriggerMetadata
@@ -16,14 +17,26 @@ import { CalendarEvent } from 'calendar-utils';
16
17
import { trackByEventId } from '../common/util' ;
17
18
18
19
export const collapseAnimation : AnimationTriggerMetadata = trigger ( 'collapse' , [
19
- transition ( 'void => *' , [
20
- style ( { height : 0 , overflow : 'hidden' } ) ,
21
- animate ( '150ms' , style ( { height : '*' } ) )
22
- ] ) ,
23
- transition ( '* => void' , [
24
- style ( { height : '*' , overflow : 'hidden' } ) ,
25
- animate ( '150ms' , style ( { height : 0 } ) )
26
- ] )
20
+ state (
21
+ 'void' ,
22
+ style ( {
23
+ height : 0 ,
24
+ overflow : 'hidden' ,
25
+ 'padding-top' : 0 ,
26
+ 'padding-bottom' : 0
27
+ } )
28
+ ) ,
29
+ state (
30
+ '*' ,
31
+ style ( {
32
+ height : '*' ,
33
+ overflow : 'hidden' ,
34
+ 'padding-top' : '*' ,
35
+ 'padding-bottom' : '*'
36
+ } )
37
+ ) ,
38
+ transition ( '* => void' , animate ( '150ms ease-out' ) ) ,
39
+ transition ( 'void => *' , animate ( '150ms ease-in' ) )
27
40
] ) ;
28
41
29
42
@Component ( {
You can’t perform that action at this time.
0 commit comments