mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 02:56:22 +00:00
feat: 优化侧边栏动画效果,统一移动端和桌面端的动画属性
This commit is contained in:
@ -156,7 +156,7 @@ export default function BlogHome() {
|
||||
{/* 侧边栏 */}
|
||||
<motion.div
|
||||
initial={isMobile ? { y: 30, opacity: 0 } : { x: 80, opacity: 0 }}
|
||||
animate={isMobile ? { y: 0, opacity: 1 } : { x: 0, opacity: 1 }}
|
||||
animate={{ x: 0, y: 0, opacity: 1 }}
|
||||
transition={{ duration: config.animationDurationSecond , ease: "easeOut" }}
|
||||
>
|
||||
<Sidebar
|
||||
|
Reference in New Issue
Block a user