feat: 优化侧边栏动画效果,统一移动端和桌面端的动画属性

This commit is contained in:
2025-09-10 23:53:26 +08:00
parent f5b30a6fe4
commit 29dc8bf27a

View File

@ -156,8 +156,8 @@ 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 }}
transition={{ duration: config.animationDurationSecond, ease: "easeOut" }}
animate={{ x: 0, y: 0, opacity: 1 }}
transition={{ duration: config.animationDurationSecond , ease: "easeOut" }}
>
<Sidebar
cards={[