fix banner widget preview transitions
This commit is contained in:
parent
46227405c1
commit
b9a285b1bd
@ -35,7 +35,9 @@ export default function BannerWidgetPreviewDesktop({
|
|||||||
position: "absolute",
|
position: "absolute",
|
||||||
width: "calc(196 / 520 * 100%)",
|
width: "calc(196 / 520 * 100%)",
|
||||||
height: "calc(30 / 262 * 100%)",
|
height: "calc(30 / 262 * 100%)",
|
||||||
transition: "all 0.5s ease",
|
transitionProperty: "width, height, top, left",
|
||||||
|
transitionDuration: "0.5s",
|
||||||
|
transitionTimingFunction: "ease",
|
||||||
},
|
},
|
||||||
position === "topleft" && {
|
position === "topleft" && {
|
||||||
top: "calc(12.5 / 262 * 100%)",
|
top: "calc(12.5 / 262 * 100%)",
|
||||||
|
@ -31,7 +31,9 @@ export default function BannerWidgetPreviewMobile({
|
|||||||
position: "absolute",
|
position: "absolute",
|
||||||
width: "calc(94 / 520 * 100%)",
|
width: "calc(94 / 520 * 100%)",
|
||||||
height: "calc(21 / 262 * 100%)",
|
height: "calc(21 / 262 * 100%)",
|
||||||
transition: "all 0.5s ease",
|
transitionProperty: "width, height, top, left",
|
||||||
|
transitionDuration: "0.5s",
|
||||||
|
transitionTimingFunction: "ease",
|
||||||
},
|
},
|
||||||
position.startsWith("top") && {
|
position.startsWith("top") && {
|
||||||
top: "calc(66 / 262 * 100%)",
|
top: "calc(66 / 262 * 100%)",
|
||||||
|
Loading…
Reference in New Issue
Block a user