mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2026-01-23 16:10:21 +08:00
feat: 添加切换主题的动画效果
This commit is contained in:
@@ -72,3 +72,23 @@ body {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 切换主题的动画效果 */
|
||||
::view-transition-old(root) {
|
||||
animation: none;
|
||||
mix-blend-mode: normal;
|
||||
}
|
||||
|
||||
::view-transition-new(root) {
|
||||
animation: 0.5s ease-in circle-animation;
|
||||
mix-blend-mode: normal;
|
||||
}
|
||||
|
||||
@keyframes circle-animation {
|
||||
from {
|
||||
clip-path: circle(0 at var(--circle-x) var(--circle-y));
|
||||
}
|
||||
to {
|
||||
clip-path: circle(var(--circle-r) at var(--circle-x) var(--circle-y));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user