Commit eb18b045 authored by minseok.park's avatar minseok.park

add dropdown menu animation

parent ae43bd8f
...@@ -299,7 +299,10 @@ body { ...@@ -299,7 +299,10 @@ body {
} }
.navbar-item.is-hoverable:hover .navbar-dropdown { .navbar-item.is-hoverable:hover .navbar-dropdown {
display: block; /* display: block; */
max-height: 300px; /* Adjust based on content */
opacity: 1;
visibility: visible;
} }
.navbar-link::before { .navbar-link::before {
...@@ -366,14 +369,20 @@ body { ...@@ -366,14 +369,20 @@ body {
} }
.navbar-dropdown { .navbar-dropdown {
clear: both;
background: var(--navbar-menu-background); background: var(--navbar-menu-background);
box-shadow: 0 6px 9px 0 rgba(0, 0, 0, 0.16); box-shadow: 0 6px 9px 0 rgba(0, 0, 0, 0.16);
border-radius: 0 0 0.25rem 0.25rem; border-radius: 0 0 0.25rem 0.25rem;
display: none; /* display: none; */
top: 100%; top: 100%;
left: 0; left: 0;
min-width: 100%; min-width: 100%;
position: absolute; position: absolute;
display: block;
max-height: 0;
opacity: 0;
visibility: hidden;
transition: max-height 0.5s ease, opacity 0.5s ease, visibility 0.5s;
} }
.navbar-dropdown .navbar-item { .navbar-dropdown .navbar-item {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment