Skip to content

Commit efac170

Browse files
committed
fix(snackbar): match spec animations more closely
- Uses the standard curve for both enter and exit animations - Use long animation duration as spec shows
1 parent 1b6b270 commit efac170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export type SnackBarState = 'initial' | 'visible' | 'complete' | 'void';
4242

4343
// TODO(jelbourn): we can't use constants from animation.ts here because you can't use
4444
// a text interpolation in anything that is analyzed statically with ngc (for AoT compile).
45-
export const SHOW_ANIMATION = '225ms cubic-bezier(0.4,0.0,1,1)';
46-
export const HIDE_ANIMATION = '195ms cubic-bezier(0.0,0.0,0.2,1)';
45+
export const SHOW_ANIMATION = '375ms cubic-bezier(0.4,0.0,0.2,1)';
46+
export const HIDE_ANIMATION = SHOW_ANIMATION;
4747

4848
/**
4949
* Internal component that wraps user-provided snack bar content.

0 commit comments

Comments
 (0)