@@ -23,38 +23,43 @@ export const transformPlaceholder: AnimationTriggerMetadata = trigger('transform
2323 state ( 'floating-ltr' , style ( {
2424 top : '-22px' ,
2525 left : '-2px' ,
26- transform : ` scale(0.75)`
26+ transform : ' scale(0.75)'
2727 } ) ) ,
2828 state ( 'floating-rtl' , style ( {
2929 top : '-22px' ,
3030 left : '2px' ,
31- transform : ` scale(0.75)`
31+ transform : ' scale(0.75)'
3232 } ) ) ,
33- transition ( '* => *' , animate ( ` 400ms cubic-bezier(0.25, 0.8, 0.25, 1)` ) )
33+ transition ( '* => *' , animate ( ' 400ms cubic-bezier(0.25, 0.8, 0.25, 1)' ) )
3434] ) ;
3535
3636/**
3737 * This animation transforms the select's overlay panel on and off the page.
3838 *
39- * When the panel is attached to the DOM, it expands its width 32px , scales it up to
40- * 100% on the Y axis, fades in its border, and translates slightly up and to the
39+ * When the panel is attached to the DOM, it expands its width by the amount of padding , scales it
40+ * up to 100% on the Y axis, fades in its border, and translates slightly up and to the
4141 * side to ensure the option text correctly overlaps the trigger text.
4242 *
4343 * When the panel is removed from the DOM, it simply fades out linearly.
4444 */
4545export const transformPanel : AnimationTriggerMetadata = trigger ( 'transformPanel' , [
4646 state ( 'showing' , style ( {
4747 opacity : 1 ,
48- minWidth : 'calc(100% + 32px)' ,
49- transform : `scaleY(1)`
48+ minWidth : 'calc(100% + 32px)' , // 32px = 2 * 16px padding
49+ transform : 'scaleY(1)'
50+ } ) ) ,
51+ state ( 'showing-multiple' , style ( {
52+ opacity : 1 ,
53+ minWidth : 'calc(100% + 64px)' , // 64px = 48px padding on the left + 16px padding on the right
54+ transform : 'scaleY(1)'
5055 } ) ) ,
5156 transition ( 'void => *' , [
5257 style ( {
5358 opacity : 0 ,
5459 minWidth : '100%' ,
55- transform : ` scaleY(0)`
60+ transform : ' scaleY(0)'
5661 } ) ,
57- animate ( ` 150ms cubic-bezier(0.25, 0.8, 0.25, 1)` )
62+ animate ( ' 150ms cubic-bezier(0.25, 0.8, 0.25, 1)' )
5863 ] ) ,
5964 transition ( '* => void' , [
6065 animate ( '250ms 100ms linear' , style ( { opacity : 0 } ) )
@@ -66,10 +71,10 @@ export const transformPanel: AnimationTriggerMetadata = trigger('transformPanel'
6671 * select's options. It is time delayed to occur 100ms after the overlay
6772 * panel has transformed in.
6873 */
69- export const fadeInContent : AnimationTriggerMetadata = trigger ( 'fadeInContent' , [
74+ export const fadeInContent : AnimationTriggerMetadata = trigger ( 'fadeInContent' , [
7075 state ( 'showing' , style ( { opacity : 1 } ) ) ,
7176 transition ( 'void => showing' , [
7277 style ( { opacity : 0 } ) ,
73- animate ( ` 150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)` )
78+ animate ( ' 150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)' )
7479 ] )
7580] ) ;
0 commit comments