BottomSheet: fix hero animation position
All checks were successful
/ depoly (push) Successful in 1m9s
All checks were successful
/ depoly (push) Successful in 1m9s
This commit is contained in:
parent
27342936f0
commit
8b12af9504
1 changed files with 2 additions and 2 deletions
|
@ -185,8 +185,8 @@ const BottomSheet: ParentComponent<BottomSheetProps> = (props) => {
|
||||||
const duration = (distance / MOVE_SPEED) * 1000;
|
const duration = (distance / MOVE_SPEED) * 1000;
|
||||||
animation = element.animate(
|
animation = element.animate(
|
||||||
[
|
[
|
||||||
composeAnimationFrame(startRect, { opacity: reserve ? 1 : 0.5 }),
|
composeAnimationFrame(startRect, { opacity: reserve ? 1 : 0.5, transform: "none" }),
|
||||||
composeAnimationFrame(endRect, { opacity: reserve ? 0.5 : 1 }),
|
composeAnimationFrame(endRect, { opacity: reserve ? 0.5 : 1, transform: "none" }),
|
||||||
],
|
],
|
||||||
{ easing, duration },
|
{ easing, duration },
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue