@@ -40,8 +40,8 @@ import {MatSnackBarConfig} from './snack-bar-config';
40
40
41
41
// TODO(jelbourn): we can't use constants from animation.ts here because you can't use
42
42
// a text interpolation in anything that is analyzed statically with ngc (for AoT compile).
43
- export const SHOW_ANIMATION = '225ms cubic-bezier(0.4 ,0.0,1 ,1)' ;
44
- export const HIDE_ANIMATION = '195ms cubic-bezier(0.0 ,0.0,0.2 ,1)' ;
43
+ export const SHOW_ANIMATION = '225ms cubic-bezier(0.0 ,0.0,0.2 ,1)' ;
44
+ export const HIDE_ANIMATION = '195ms cubic-bezier(0.4 ,0.0,1 ,1)' ;
45
45
46
46
/**
47
47
* Internal component that wraps user-provided snack bar content.
@@ -72,8 +72,7 @@ export const HIDE_ANIMATION = '195ms cubic-bezier(0.0,0.0,0.2,1)';
72
72
state ( 'visible-bottom' , style ( { transform : 'translateY(0%)' } ) ) ,
73
73
state ( 'hidden-bottom' , style ( { transform : 'translateY(100%)' } ) ) ,
74
74
transition ( 'visible-bottom => hidden-bottom' , animate ( HIDE_ANIMATION ) ) ,
75
- transition ( 'void => visible-bottom' ,
76
- animate ( SHOW_ANIMATION ) ) ,
75
+ transition ( 'void => visible-bottom' , animate ( SHOW_ANIMATION ) ) ,
77
76
] )
78
77
] ,
79
78
} )
0 commit comments