+
= ({ locale, items, foot
)}
initial={false}
animate={{
- clipPath: isScrolled && !isShellExpanded
- ? "inset(0% 10% 0% 10% round 1rem)"
- : "inset(0% 0% 0% 0% round 1rem)",
+ left: shellInset,
+ right: shellInset,
}}
transition={shellTransition}
/>
@@ -121,8 +126,8 @@ const NavigationMobile: React.FC = ({ locale, items, foot
className="pointer-events-none absolute inset-0 z-10 rounded-2xl border border-white/5"
initial={false}
animate={{
- left: isScrolled && !isShellExpanded ? "10%" : "0%",
- right: isScrolled && !isShellExpanded ? "10%" : "0%",
+ left: shellInset,
+ right: shellInset,
opacity: isScrolled || isShellExpanded ? 1 : 0,
}}
transition={shellTransition}
@@ -131,23 +136,15 @@ const NavigationMobile: React.FC = ({ locale, items, foot
className="relative z-10 flex flex-col overflow-hidden rounded-2xl p-1.5"
initial={false}
>
-
+
{
@@ -155,237 +152,68 @@ const NavigationMobile: React.FC = ({ locale, items, foot
setIsOpen(false)
}}
>
-
-
-
-
-
+
+
+
+