Skip to content

Commit 18e40f4

Browse files
committed
fix(snackbar): swap enter and exit animation curves
1 parent 6b41a51 commit 18e40f4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/lib/snack-bar/snack-bar-container.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ import {MatSnackBarConfig} from './snack-bar-config';
4040

4141
// TODO(jelbourn): we can't use constants from animation.ts here because you can't use
4242
// 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)';
4545

4646
/**
4747
* 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)';
7272
state('visible-bottom', style({transform: 'translateY(0%)'})),
7373
state('hidden-bottom', style({transform: 'translateY(100%)'})),
7474
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)),
7776
])
7877
],
7978
})

0 commit comments

Comments
 (0)