Skip to content

Commit 060efa0

Browse files
committed
fix(nav): shorten hover dropdown linger
Signed-off-by: Roshan Warrier <[email protected]>
1 parent cd1adf7 commit 060efa0

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

src/sections/General/Navigation/navigation.style.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,11 @@ const NavigationWrap = styled.header`
156156
width: 120%;
157157
display: block;
158158
box-shadow: 0px 5px 10px 1px rgba(0, 179, 159, 0.5);
159-
animation: bobbleout ease 0.18s forwards;
159+
animation: bobbleout ease 0.12s forwards;
160160
pointer-events: none;
161-
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
161+
transition:
162+
opacity 0.12s ease-out,
163+
transform 0.12s ease-out;
162164
}
163165
.wrap {
164166
display: block;
@@ -367,7 +369,7 @@ const NavigationWrap = styled.header`
367369
}
368370
}
369371
ul:hover > ul {
370-
animation: bobble ease 0.3s forwards;
372+
animation: bobble ease 0.18s forwards;
371373
pointer-events: auto;
372374
visibility: visible;
373375
}
@@ -655,8 +657,8 @@ const NavigationWrap = styled.header`
655657
padding-top: 0.4rem;
656658
}
657659
.mobile-nested-menu {
658-
font-size: 1.1rem;
659-
margin-left: 1rem;
660+
font-size: 1.1rem;
661+
margin-left: 1rem;
660662
}
661663
}
662664
@@ -771,7 +773,7 @@ const NavigationWrap = styled.header`
771773
.dark-theme-toggle {
772774
/* margin-left: 2rem; */
773775
visibility: ${(props) =>
774-
typeof props.theme.DarkTheme === "boolean" ? "visible" : "hidden"};
776+
typeof props.theme.DarkTheme === "boolean" ? "visible" : "hidden"};
775777
}
776778
777779
.toggle {
@@ -794,7 +796,8 @@ const NavigationWrap = styled.header`
794796
--offset-diagonal: calc(var(--size) * 0.45);
795797
transform: scale(0.75);
796798
color: #3c494f;
797-
box-shadow: inset 0 0 0 var(--size),
799+
box-shadow:
800+
inset 0 0 0 var(--size),
798801
calc(var(--offset-orthogonal) * -1) 0 0 var(--ray-size),
799802
var(--offset-orthogonal) 0 0 var(--ray-size),
800803
0 calc(var(--offset-orthogonal) * -1) 0 var(--ray-size),

0 commit comments

Comments
 (0)