Update extra.css

增加昼夜切换的颜色过渡效果,更加平滑
This commit is contained in:
W1ndys 2024-04-12 20:13:09 +08:00 committed by GitHub
parent cf9ecac5d8
commit 48c46f0eb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -459,6 +459,25 @@ padding: 20px 0;
font-size: 30px;
}
/* 添加过渡效果 */
* {
transition-property: color, background-color;
/* 设置过渡的属性 */
transition-duration: 0.5s;
/* 设置过渡的时间 */
transition-timing-function: cubic-bezier(0.01, 0.34, 0.9, 1.14);
/* 设置过渡的缓动函数 */
}
/* 屏蔽过渡效果 */
p,
h1,
h2,
hr {
transition: none !important;
}
/*上面是过渡效果*/