Skip to content

feat(nav): add frosted glass blur effect on scroll#415

Merged
huacnlee merged 1 commit intomainfrom
new-home
Apr 10, 2026
Merged

feat(nav): add frosted glass blur effect on scroll#415
huacnlee merged 1 commit intomainfrom
new-home

Conversation

@huacnlee
Copy link
Copy Markdown
Member

Summary

  • 滚动后导航栏显示玻璃模糊效果(backdrop-filter: blur(15px) + 半透明背景)
  • 利用 VitePress 内置的 .top 类(y === 0 时添加,滚动后移除)触发样式切换
  • 支持 dark mode(深色半透明背景)
  • 隐藏滚动后的底部分隔线

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@huacnlee huacnlee merged commit addaff6 into main Apr 10, 2026
2 checks passed
@huacnlee huacnlee deleted the new-home branch April 10, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant