From 707f4ac11c6575951a75883215130805b3008614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 29 Jun 2026 18:07:21 +0200 Subject: [PATCH] Animate sidebar/bottom drawer sliding into view --- app/styles/app.css | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/app/styles/app.css b/app/styles/app.css index 14a1b97..2d0cb5b 100644 --- a/app/styles/app.css +++ b/app/styles/app.css @@ -460,6 +460,8 @@ body { display: flex; flex-direction: column; overflow: hidden; /* Ensure flex children are contained */ + will-change: transform; + animation: sidebar-slide-in-left 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards; } .sidebar.app-menu-pane { @@ -1420,6 +1422,8 @@ button.create-place { border-top-left-radius: 16px; border-top-right-radius: 16px; inset: auto 0 0; + animation: sidebar-slide-up-bottom 0.18s cubic-bezier(0.16, 1, 0.3, 1) + forwards; } .sidebar-content { @@ -2137,3 +2141,25 @@ button.create-place { align-items: center; justify-content: center; } + +/* Snappy slide-in from left (Desktop) */ +@keyframes sidebar-slide-in-left { + from { + transform: translateX(-100%); + } + + to { + transform: translateX(0); + } +} + +/* Snappy slide-up from bottom (Mobile) */ +@keyframes sidebar-slide-up-bottom { + from { + transform: translateY(100%); + } + + to { + transform: translateY(0); + } +}