Skip to content

Commit e3ce491

Browse files
committed
heo header 动画
1 parent 5c1ce60 commit e3ce491

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

themes/heo/components/Header.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ const Header = props => {
153153
{/* 中间菜单 */}
154154
<div
155155
id='nav-bar-swipe'
156-
className={`hidden lg:flex flex-grow flex-col items-center justify-center h-full relative w-full overflow-hidden`}>
156+
className={`hidden lg:flex flex-grow flex-col items-center justify-center h-full relative w-full`}>
157157
<div
158-
className={`absolute transition-all duration-500 ${activeIndex === 0 ? 'opacity-100 mt-0' : '-mt-24 opacity-0 invisible'}`}>
158+
className={`absolute transition-all duration-700 ${activeIndex === 0 ? 'opacity-100 mt-0' : '-mt-20 opacity-0 invisible'}`}>
159159
<MenuListTop {...props} />
160160
</div>
161161
<div
162-
className={`absolute transition-all duration-500 ${activeIndex === 1 ? 'opacity-100 mb-0' : '-mb-24 opacity-0 invisible'}`}>
162+
className={`absolute transition-all duration-700 ${activeIndex === 1 ? 'opacity-100 mb-0' : '-mb-20 opacity-0 invisible'}`}>
163163
<h1 className='font-bold text-center text-light-400 dark:text-gray-400'>
164164
{siteConfig('AUTHOR') || siteConfig('TITLE')}{' '}
165165
{siteConfig('BIO') && <>|</>} {siteConfig('BIO')}

themes/heo/components/MenuItemDrop.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ export const MenuItemDrop = ({ link }) => {
3636
{hasSubMenu && (
3737
<ul
3838
style={{ backdropFilter: 'blur(3px)' }}
39-
className={`${show ? 'visible opacity-100 top-14' : 'invisible opacity-0 top-20'} drop-shadow-md overflow-hidden rounded-xl bg-white dark:bg-[#1e1e1e] border dark:border-gray-700 transition-all duration-300 z-20 absolute`}>
39+
className={`${show ? 'visible opacity-100 top-14' : 'invisible opacity-0 top-20'} drop-shadow-md overflow-hidden rounded-xl bg-white dark:bg-[#1e1e1e] transition-all duration-300 z-20 absolute`}>
4040
{link.subMenus.map((sLink, index) => {
4141
return (
4242
<li
4343
key={index}
44-
className='cursor-pointer hover:bg-blue-600 dark:hover:bg-yellow-600 hover:text-white text-gray-900 dark:text-gray-100 tracking-widest transition-all duration-200 dark:border-gray-700 py-1 pr-6 pl-3'>
44+
className='cursor-pointer hover:bg-blue-600 dark:hover:bg-yellow-600 hover:text-white text-gray-900 dark:text-gray-100 tracking-widest transition-all duration-200 py-1 pr-6 pl-3'>
4545
<Link href={sLink.href} target={link?.target}>
4646
<span className='text-sm text-nowrap font-extralight'>
4747
{link?.icon && <i className={sLink?.icon}> &nbsp; </i>}

0 commit comments

Comments
 (0)