Skip to content

Commit 9c909d5

Browse files
committed
style: TopNavItem 컴포넌트의 전환 효과를 개선하여 사용자 경험 향상
1 parent 6a75ed6 commit 9c909d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TopNavItem.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const {pathname, label, icon} = Astro.props;
1111
const active = pathname === (Astro.url.pathname.replace(/\/+$/, '') || "/");
1212
---
1313

14-
<a href={pathname} class=`px-4 flex flex-row items-center gap-3 cursor-pointer rounded-full text-bright select-none transition-all
14+
<a href={pathname} class=`px-4 flex flex-row items-center gap-3 cursor-pointer rounded-full text-bright select-none transition duration-300 ease-in-out
1515
hover:bg-bright hover:text-gray-950 hover:scale-110
1616
${active && 'bg-bright text-gray-950 scale-110'}`>
1717
<slot/>

0 commit comments

Comments
 (0)