lazyimage 优化

This commit is contained in:
tangly1024
2025-04-13 13:13:16 +08:00
parent d445ac8549
commit 7446a7a146
2 changed files with 12 additions and 14 deletions

View File

@@ -129,20 +129,6 @@ export default function LazyImage({
<link rel='preload' as='image' href={adjustImgSize(src, maxWidth)} />
</Head>
)}
<style>
{`
.lazy-image-placeholder{
background:
linear-gradient(90deg,#0001 33%,#0005 50%,#0001 66%)
#f2f2f2;
background-size:300% 100%;
animation: l1 1s infinite linear;
}
@keyframes l1 {
0% {background-position: right}
}
`}
</style>
</>
)
}