一点动效

This commit is contained in:
tangly1024
2022-12-27 11:28:20 +08:00
parent 35e2a282d3
commit f57e804bcf
3 changed files with 30 additions and 5 deletions

View File

@@ -2,7 +2,13 @@ export default function HeaderArticle({ post, siteInfo }) {
const headerImage = post?.page_cover ? post?.page_cover : siteInfo?.pageCover
const title = post?.title
return (
<div id='header' className="flex h-96 justify-center align-middle items-center w-full relative duration-200 bg-black">
<div
data-aos="fade-down"
data-aos-duration="500"
data-aos-easing="ease-in-out"
data-aos-once="false"
data-aos-anchor-placement="top-center"
id='header' className="flex h-96 justify-center align-middle items-center w-full relative duration-200 bg-black">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={headerImage}