diff options
| author | realtradam <[email protected]> | 2024-06-20 15:16:03 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-06-20 15:16:03 -0400 |
| commit | d8784ecd03be1cc90887242ae340a0bbf069da18 (patch) | |
| tree | df8617ae53d96175cb0c37cb126060d26fc08c60 /src/index.css | |
| parent | e77c879f488cdc267c85438d54eb88e805efdc0b (diff) | |
| download | malcz.com-d8784ecd03be1cc90887242ae340a0bbf069da18.tar.gz malcz.com-d8784ecd03be1cc90887242ae340a0bbf069da18.zip | |
add mobile sliding sidepanel
Diffstat (limited to 'src/index.css')
| -rw-r--r-- | src/index.css | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/src/index.css b/src/index.css index 72845f6..153686f 100644 --- a/src/index.css +++ b/src/index.css @@ -9,8 +9,45 @@ @apply py-2 px-4 bg-blue-200; } } - */ + +@keyframes sidebar-enter { + from { + left: -16rem; + } + to { + left: 0; + } +} + +@keyframes sidebar-exit { + from { + left: 0; + } + to { + left: -16rem; + } +} + +.sidebarInit { + left: -16rem; +} + +.sidebarOpen { + animation-name: sidebar-enter; + left: 0; +} + +.sidebarClosed { + animation-name: sidebar-exit; + left: -16rem; +} + +#sidebar { + animation-duration: 0.5s; + animation-iteration-count: 1; +} + .gameCard { aspect-ratio: 5/7; width: 300px; |
