menu - animation

This commit is contained in:
tangly1024.com
2023-03-23 17:30:09 +08:00
parent ef8812066f
commit 7ba1d046af
8 changed files with 12 additions and 12 deletions

View File

@@ -19,7 +19,7 @@ export const MenuItemDrop = ({ link }) => {
(selected ? 'bg-green-600 text-white hover:text-white' : 'hover:text-green-600')}>
<div className='px-1'>
{link?.name}
{hasSubMenu && <i className='px-2 fa fa-angle-down'></i>}
{hasSubMenu && <i className={`px-2 fas fa-chevron-down duration-500 transition-all ${show ? ' rotate-180' : ''}`}></i>}
</div>
</div>
}