Skip to content

Commit

Permalink
fix: animation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ayussh-2 committed Oct 21, 2024
1 parent 3c1ae2e commit f11fa24
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions src/components/Marginals/navbar/navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,17 @@ const Navbar = () => {
marginTop: '10px',
}}
exit={{ opacity: 0 }}
transition={{ duration: 0.3, ease: 'easeInOut' }}
transition={{ duration: 0.3, type: 'tween' }}
className='h-[73vh] flex items-center justify-center'
>
<ResMen>
<ResList>
{navLinks.map((navLink, idx) => (
<motion.div
initial={{ x: -100, opacity: 0 }}
animate={{ x: 0, opacity: 1 }}
exit={{ x: -100, opacity: 0 }}
transition={{ duration: 0.3, delay: idx * 0.1 }}
key={navLink.link}
>
<ResItem key={navLink.link}>
<Link href={`${navLink.link}`} onClick={handleCloseMenu}>
{navLink.name}
</Link>
</ResItem>
</motion.div>
<ResItem key={navLink.link}>
<Link href={`${navLink.link}`} onClick={handleCloseMenu}>
{navLink.name}
</Link>
</ResItem>
))}

<HamburgerRegisterButton>
Expand Down

0 comments on commit f11fa24

Please sign in to comment.