Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

better animation

Roman Pominove8ac151b626c
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsx
index 44b7f6aa1f..cd605b47c8 100644
--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsx
@@ -30,8 +30,12 @@ const CollapsibleContent = styled(Collapsible.Content, {
flexGrow: "1",
display: "flex",
flexDirection: "column",
- '&[data-state="open"]': { animation: `${openKeyframes} 200ms ease-out` },
- '&[data-state="closed"]': { animation: `${closeKeyframes} 200ms ease-out` },
+ '&[data-state="open"]': {
+ animation: `${openKeyframes} 200ms $easing$inOutCubic`,
+ },
+ '&[data-state="closed"]': {
+ animation: `${closeKeyframes} 200ms $easing$inOutCubic`,
+ },
});
export const SettingsPanel = ({
diff --git a/packages/design-system/src/stitches.config.ts b/packages/design-system/src/stitches.config.ts
index 21a33479f6..834ea1241a 100644
--- a/packages/design-system/src/stitches.config.ts
+++ b/packages/design-system/src/stitches.config.ts
@@ -292,6 +292,9 @@ const {
4: "400",
max: "999",
},
+ easing: {
+ inOutCubic: "cubic-bezier(0.65, 0, 0.35, 1)",
+ },
},
media: {
bp1: "(min-width: 520px)",