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