Skip to content

Commit eb9e872

Browse files
authored
Merge pull request #205 from praveenzsp/bug-fix/hide-navbar-properly
Properly hide Navbar when it's not visible
2 parents 93ca6d9 + 2f5e536 commit eb9e872

File tree

1 file changed

+1
-1
lines changed
  • apps/web/src/components/landing-sections

1 file changed

+1
-1
lines changed

apps/web/src/components/landing-sections/navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const Navbar = () => {
4646
return (
4747
<motion.nav
4848
initial={{ opacity: 0 }}
49-
animate={showNavbar ? { opacity: 1 } : { opacity: 0 }}
49+
animate={showNavbar ? { opacity: 1 } : { opacity: 0, display: 'none' }}
5050
transition={{ duration: 0.3 }}
5151
className={cn(
5252
" z-40 flex items-center justify-between px-4 py-3 bg-neutral-900/5 backdrop-blur-xl border-white/10",

0 commit comments

Comments
 (0)