about summary refs log tree commit diff
path: root/src/style.css
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-02-12 21:51:16 +0000
committerGitHub <noreply@github.com>2025-02-12 21:51:16 +0000
commit1a3ecdf6ecb411f7bf0e1a360f0c57d3b3d65f48 (patch)
treeed6e914bb059e0d9f63298b29844990dcbfadbcc /src/style.css
parent66f5e3a8330faf616e36db56e90c365637bae722 (diff)
downloadvoidsky-1a3ecdf6ecb411f7bf0e1a360f0c57d3b3d65f48.tar.zst
Animate drawer menu on mobile web (#7711)
* slide in/out drawer

* increase width slightly

* exponential easing function
Diffstat (limited to 'src/style.css')
-rw-r--r--src/style.css18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/style.css b/src/style.css
index dd13b13be..2e118c433 100644
--- a/src/style.css
+++ b/src/style.css
@@ -215,6 +215,24 @@ input:focus {
   }
 }
 
+@keyframes slideInLeft {
+  from {
+    transform: translateX(-100%);
+  }
+  to {
+    transform: translateX(0);
+  }
+}
+
+@keyframes slideOutLeft {
+  from {
+    transform: translateX(0);
+  }
+  to {
+    transform: translateX(-100%);
+  }
+}
+
 /* animating radix dropdowns requires knowing the data attributes */
 .dropdown-menu-transform-origin > * {
   transform-origin: var(--radix-dropdown-menu-content-transform-origin);