BottomSheet: fix the animation problem
This commit is contained in:
parent
b5da86fa5c
commit
040016ddce
2 changed files with 0 additions and 14 deletions
|
@ -43,7 +43,6 @@
|
|||
|
||||
&.animated {
|
||||
position: absolute;
|
||||
transform: translateY(-50%);
|
||||
overflow: hidden;
|
||||
will-change: width, height, top, left;
|
||||
|
||||
|
@ -54,12 +53,6 @@
|
|||
& * {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
& {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.bottom {
|
||||
|
@ -71,7 +64,6 @@
|
|||
& {
|
||||
transform: none;
|
||||
height: unset;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -118,12 +118,9 @@ const BottomSheet: ParentComponent<BottomSheetProps> = (props) => {
|
|||
|
||||
animation = element.animate(
|
||||
{
|
||||
top: [`${rect.top}px`, `${rect.top}px`],
|
||||
left: reserve
|
||||
? [`${rect.left}px`, `${window.innerWidth}px`]
|
||||
: [`${window.innerWidth}px`, `${rect.left}px`],
|
||||
width: [`${rect.width}px`, `${rect.width}px`],
|
||||
height: [`${rect.height}px`, `${rect.height}px`],
|
||||
},
|
||||
{ easing, duration },
|
||||
);
|
||||
|
@ -151,12 +148,9 @@ const BottomSheet: ParentComponent<BottomSheetProps> = (props) => {
|
|||
|
||||
animation = element.animate(
|
||||
{
|
||||
left: [`${rect.left}px`, `${rect.left}px`],
|
||||
top: reserve
|
||||
? [`${rect.top}px`, `${window.innerHeight}px`]
|
||||
: [`${window.innerHeight}px`, `${rect.top}px`],
|
||||
width: [`${rect.width}px`, `${rect.width}px`],
|
||||
height: [`${rect.height}px`, `${rect.height}px`],
|
||||
},
|
||||
{ easing, duration },
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue