BottomSheet: remove opacity in hero animation
All checks were successful
/ depoly (push) Successful in 1m9s

This commit is contained in:
thislight 2024-10-10 16:22:04 +08:00
parent 8b12af9504
commit b79f5f94bf
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E

View file

@ -185,8 +185,8 @@ const BottomSheet: ParentComponent<BottomSheetProps> = (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 },
);