From 0d9b3709198681db07348cadd8fa90cd88843400 Mon Sep 17 00:00:00 2001 From: thislight Date: Thu, 10 Oct 2024 16:22:04 +0800 Subject: [PATCH] BottomSheet: remove opacity in hero animation --- 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 3149a62..270b1c0 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, transform: "none" }), - composeAnimationFrame(endRect, { opacity: reserve ? 0.5 : 1, transform: "none" }), + composeAnimationFrame(startRect, { transform: "none" }), + composeAnimationFrame(endRect, { transform: "none" }), ], { easing, duration }, );