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