Skip to content

Commit

Permalink
feat: expand pseudoelement from center
Browse files Browse the repository at this point in the history
  • Loading branch information
cubedhuang committed Jul 19, 2022
1 parent 98629ce commit e57e882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export default function Navbar() {
href={href}
key={href}
activeClass="after:scale-x-100"
nonActiveClass="after:scale-x-0"
nonActiveClass="after:scale-x-0 after:opacity-0 hover:after:scale-x-50 hover:after:opacity-100"
>
<a className="py-2 flex items-center hover:after:scale-x-100 after:transition relative after:absolute after:bottom-0 after:left-0 after:w-full after:h-0.5 after:bg-white after:rounded after:origin-right hover:after:origin-left">
<a className="py-2 flex items-center after:transition relative after:absolute after:bottom-0 after:left-0 after:w-full after:h-0.5 after:bg-white after:rounded">
{title}
<Icon className={`w-5 h-5 ml-2 ${color}`} />
</a>
Expand Down

1 comment on commit e57e882

@vercel
Copy link

@vercel vercel bot commented on e57e882 Jul 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

danonl – ./

danonl-git-main-cubed.vercel.app
dannext.vercel.app
www.dan.onl
danonl-cubed.vercel.app
dan.onl

Please sign in to comment.