From 9508649bdd443c3a3db61f2f95e605c1722110aa 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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/app/styles/app.css b/app/styles/app.css index 14a1b97..164d7dd 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,7 @@ 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 +2140,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); + } +}