From bef53156fccb0e11c0f3f1d4e27429cc6176240c Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Tue, 1 Aug 2023 13:41:23 -0400 Subject: [PATCH] Tweak motion --- packages/components/src/snackbar/list.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/components/src/snackbar/list.tsx b/packages/components/src/snackbar/list.tsx index ebd1fca2518f5..631cf48d953a2 100644 --- a/packages/components/src/snackbar/list.tsx +++ b/packages/components/src/snackbar/list.tsx @@ -29,13 +29,21 @@ const SNACKBAR_VARIANTS = { height: 'auto', opacity: 1, transition: { - height: { stiffness: 1000, velocity: -100 }, + height: { type: 'tween', duration: 0.3, ease: [ 0, 0, 0.2, 1 ] }, + opacity: { + type: 'tween', + duration: 0.25, + delay: 0.05, + ease: [ 0, 0, 0.2, 1 ], + }, }, }, exit: { opacity: 0, transition: { - duration: 0.5, + type: 'tween', + duration: 0.1, + ease: [ 0, 0, 0.2, 1 ], }, }, };