feat: animate widget resize

This commit is contained in:
Shivam Mishra
2026-06-10 15:47:19 +05:30
parent 63a14f7d06
commit c5b13c8d45
4 changed files with 58 additions and 14 deletions
+4 -3
View File
@@ -12,8 +12,9 @@ export const SDK_CSS = `
overflow: hidden !important;
position: fixed !important;
transition: opacity 0.2s linear, transform 0.25s linear,
width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
width 0.2s cubic-bezier(0.4, 0, 0.2, 1),
height 0.2s cubic-bezier(0.4, 0, 0.2, 1),
max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 2147483000 !important;
}
@@ -293,7 +294,7 @@ export const SDK_CSS = `
.woot-widget-holder.has-article-view {
width: min(640px, max(0px, -20px + 100dvw)) !important;
height: calc(100% - 125px) !important;
max-height: none !important;
max-height: calc(100% - 125px) !important;
}
}