mirror of
https://github.com/liyunze-coding/RythonDev.git
synced 2026-09-22 15:53:57 +00:00
improved mobile nav animation
This commit is contained in:
parent
0f8be5208a
commit
e4887cec25
1 changed files with 2 additions and 3 deletions
|
|
@ -185,6 +185,7 @@ export const HoverNavigation = ({
|
|||
<motion.ul
|
||||
animate={{
|
||||
height: hamburgerOpen ? "auto" : "0px",
|
||||
opacity: hamburgerOpen ? "100%" : "0",
|
||||
}}
|
||||
transition={{
|
||||
ease: "easeInOut",
|
||||
|
|
@ -195,9 +196,7 @@ export const HoverNavigation = ({
|
|||
<a
|
||||
href={item?.link}
|
||||
key={item?.link}
|
||||
className="group relative block h-full px-5 py-2 text-center lg:hidden"
|
||||
onMouseEnter={() => setHoveredIndex(idx)}
|
||||
onMouseLeave={() => setHoveredIndex(null)}
|
||||
className="group relative block px-5 py-2 text-center lg:hidden"
|
||||
>
|
||||
{item.label}
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Reference in a new issue