From a4d65381cd78db7948d0e6a59838144778c11dba Mon Sep 17 00:00:00 2001 From: arandomperson-z Date: Mon, 1 Apr 2024 13:04:59 -0400 Subject: [PATCH] Animate opening and closing of menu --- styles/Sidebar.module.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/styles/Sidebar.module.css b/styles/Sidebar.module.css index dcbec8e..6a8eb4a 100644 --- a/styles/Sidebar.module.css +++ b/styles/Sidebar.module.css @@ -4,6 +4,7 @@ position: absolute !important; height: calc(100vh - 94px); top: 94px; + transition: all 0.2s linear; } #sidebar { @@ -57,7 +58,8 @@ } .hide { - display: none !important; + margin-left: -500px; + opacity: 0; } #socialsBar { @@ -106,6 +108,7 @@ height: 450px !important; top: 64px; width: 100%; + z-index: -3; } #socialsBar { @@ -122,6 +125,11 @@ .department:hover .subdepartment { display: none; /* Explicitly specify for safari... */ } + + .hide { + margin-top: -500px; + margin-left: 0; + } } .user_icon {