feat(bolg) add animation

This commit is contained in:
lumither committed 2024-06-06 19:13:25 +08:00
1 parent 56d673a9ec
commit c62fe7d1ef
6 files changed
+32 -18

No files matched your search

+10 -3
View File
@@ -1,12 +1,19 @@
import React from 'react';
import Generate from '@/app/blog/post/[id]/generate';
import { MotionDiv } from '@/app/public/MotionDiv';
function BlogReader({ params }: { params: { id: string } }) {
return (
<div className={ `w-full` }>
<Generate id={ params.id } />
</div>
<MotionDiv
initial={ { y: 20, opacity: 0 } }
animate={ { y: 0, opacity: 1 } }
transition={ { ease: 'easeInOut', duration: 0.5 } }
>
<div className={ `w-full` }>
<Generate id={ params.id } />
</div>
</MotionDiv>
);
}