fix(ui): 移除快速切换时闪烁的整页淡入动画
- 保留首帧前切好主题背景 - 去掉页面根容器从透明度 0 重新淡入的动画,避免快速点 tab 时闪系统底色
This commit is contained in:
@@ -10,19 +10,12 @@
|
||||
min-height: 100vh;
|
||||
background-color: var(--bg-page, #ffffff);
|
||||
box-sizing: border-box;
|
||||
animation: page-fade-in 0.24s ease both;
|
||||
}
|
||||
|
||||
.theme-dark {
|
||||
min-height: 100vh;
|
||||
background-color: var(--bg-page, #191919);
|
||||
box-sizing: border-box;
|
||||
animation: page-fade-in 0.24s ease both;
|
||||
}
|
||||
|
||||
@keyframes page-fade-in {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
/* 变量定义 */
|
||||
|
||||
Reference in New Issue
Block a user