From d61212242ef92ecf1ced2220c6391295f7351bca Mon Sep 17 00:00:00 2001 From: thislight Date: Wed, 9 Oct 2024 23:34:07 +0800 Subject: [PATCH] BottomSheet: fix hero animation position --- src/material/BottomSheet.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/material/BottomSheet.tsx b/src/material/BottomSheet.tsx index e753e20..3149a62 100644 --- a/src/material/BottomSheet.tsx +++ b/src/material/BottomSheet.tsx @@ -185,8 +185,8 @@ const BottomSheet: ParentComponent = (props) => { const duration = (distance / MOVE_SPEED) * 1000; animation = element.animate( [ - composeAnimationFrame(startRect, { opacity: reserve ? 1 : 0.5 }), - composeAnimationFrame(endRect, { opacity: reserve ? 0.5 : 1 }), + composeAnimationFrame(startRect, { opacity: reserve ? 1 : 0.5, transform: "none" }), + composeAnimationFrame(endRect, { opacity: reserve ? 0.5 : 1, transform: "none" }), ], { easing, duration }, );