mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-21 01:37:32 +08:00
style: 优化文章图片加载样式
This commit is contained in:
@ -61,19 +61,16 @@ const { className = "", dataPagefindBody = true } = Astro.props;
|
||||
|
||||
/* 修改图片相关样式 */
|
||||
:global(article img) {
|
||||
opacity: 0;
|
||||
position: relative;
|
||||
background-color: #f0f0f0;
|
||||
transition: all 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
:global(article img.loading) {
|
||||
opacity: 1;
|
||||
filter: blur(10px);
|
||||
}
|
||||
|
||||
:global(article img.loaded) {
|
||||
opacity: 1;
|
||||
filter: blur(0);
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user