Skip to content

Commit 5b69339

Browse files
added mix blend mode for navbar
1 parent e0440aa commit 5b69339

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/ui/NavigationBar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const HoverNavigation = ({
161161
<AnimatePresence>
162162
{hoveredIndex === idx && (
163163
<motion.span
164-
className="absolute inset-0 block h-full w-full rounded-3xl bg-neutral-200"
164+
className="absolute inset-0 z-10 block h-full w-full rounded-3xl bg-neutral-200"
165165
layoutId="hoverBackground"
166166
initial={{ opacity: 0 }}
167167
animate={{
@@ -213,7 +213,7 @@ export const HoverNavigation = ({
213213
<li key={item?.link}>
214214
<a
215215
href={item?.link}
216-
className="group relative block px-5 py-2 text-center lg:hidden"
216+
className="block px-5 py-2 text-center mix-blend-difference lg:hidden"
217217
>
218218
{item.label}
219219
</a>
@@ -235,7 +235,7 @@ export const NavBarLink = ({
235235
return (
236236
<div
237237
className={cn(
238-
"relative z-20 h-fit w-full overflow-hidden rounded-2xl text-center transition-all ease-out group-hover:text-black",
238+
"relative z-20 h-fit w-full overflow-hidden rounded-2xl text-center mix-blend-difference transition-all ease-out",
239239
className,
240240
)}
241241
>

0 commit comments

Comments
 (0)