mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
lazyimage 优化
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user