Skip to content

Commit

Permalink
Change navbar animation
Browse files Browse the repository at this point in the history
  • Loading branch information
atch2203 committed Jul 3, 2024
1 parent 069d504 commit 9995651
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ function NavBar() {
{links.map((obj, i) => <Link key={i} href={obj.link} className="relative"><li key={i} className={liClass + (obj.link === path && (onpage))}>
{obj.link === path && (
<motion.span
initial={{opacity:0,y:20}}
animate={{opacity:1,y:0}}
exit={{opacity:0,y:20}}
initial={{scaleX:0}}
animate={{scaleX:1}}
exit={{scaleX:0}}
className="absolute top-full block h-[2px] w-full bg-black max-md:hidden" />
)}

Expand Down

0 comments on commit 9995651

Please sign in to comment.