多背景轮训+淡入淡出

This commit is contained in:
2026-01-14 20:35:48 +08:00
parent f61a3bfc30
commit 37e8c7ecc4
7 changed files with 175 additions and 6 deletions

View File

@@ -6,16 +6,17 @@
// 自定义首页背景图
&::before {
background-size: cover;
// 默认是暗色模式的背景
background-image: url(/bg.webp);
display: none;
// background-size: cover;
// // 默认是暗色模式的背景
// background-image: url(/bg.webp);
}
}
// 亮色模式下切换背景
html:not(.dark) .VPHome::before {
background-image: url(/bgw.webp);
}
// html:not(.dark) .VPHome::before {
// background-image: url(/bgw.webp);
// }