fukasawa 卡片动效

This commit is contained in:
tangly1024.com
2023-02-10 09:55:01 +08:00
parent 310be473de
commit 89a4f36b9c
2 changed files with 13 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ const BlogCard = ({ post, showSummary, siteInfo }) => {
<Card className="w-full lg:max-w-sm p-2 h-full overflow-auto">
<div
key={post.id}
className="animate__animated animate__fadeIn flex flex-col-reverse justify-between duration-300"
className="flex flex-col-reverse justify-between duration-300"
>
<div className="p-2 flex flex-col w-full">
<Link

View File

@@ -1,9 +1,15 @@
const Card = ({ children, headerSlot, className }) => {
return <div className={className}>
<>{headerSlot}</>
<section className="shadow mb-4 p-2 bg-white dark:bg-hexo-black-gray hover:shadow-lg duration-200">
{children}
</section>
</div>
return <div className={className}
data-aos="fade-up"
data-aos-duration="600"
data-aos-easing="ease-in-out"
data-aos-once="false"
data-aos-anchor-placement="top-bottom"
>
<>{headerSlot}</>
<section className="shadow mb-4 p-2 bg-white dark:bg-hexo-black-gray hover:shadow-lg duration-200">
{children}
</section>
</div>
}
export default Card