diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index be53faa..a9f41ec 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -14,10 +14,7 @@ } onMount(async () => { - if (!homepage) { - nav.classList.add('nav--with-border') - return - } + if (!homepage) return const {gsap} = await import('gsap') const {ScrollTrigger} = await import('gsap/ScrollTrigger') @@ -28,10 +25,10 @@ trigger: '.hero__name', start: "top top+=97px", onEnter: () => { - nav.classList.add('nav--with-border') + nav.classList.add('!border-b-slate-800') }, onLeaveBack: () => { - nav.classList.remove('nav--with-border') + nav.classList.remove('!border-b-slate-800') } }) }) @@ -40,6 +37,7 @@