TopNav监听滚动
This commit is contained in:
tangly1024
2021-12-22 21:55:33 +08:00
parent efd1b0b2c5
commit f59a760245
2 changed files with 27 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ const TopNav = ({ tags, currentTag, post, posts, categories, currentCategory })
<SideBarDrawer post={post} currentTag={currentTag} cRef={drawer} tags={tags} posts={posts} categories={categories} currentCategory={currentCategory}/>
{/* 导航栏 */}
<div id='sticky-nav' className='dark flex fixed md:relative w-full top-0 z-20 transform duration-500'>
<div id='sticky-nav' className='flex fixed md:relative w-full top-0 z-20 transform duration-500'>
<div className='w-full flex justify-between items-center p-4 glassmorphism'>
{/* 左侧LOGO 标题 */}
<div className='flex flex-none flex-grow-0'>