[Client] Better transition
This commit is contained in:
parent
467f68502a
commit
2c83a05e80
|
@ -47,7 +47,7 @@ export function applyTheme(theme: Theme, persisted = true) {
|
|||
|
||||
setTimeout(() => {
|
||||
document.documentElement.classList.remove('changing-theme');
|
||||
}, 500);
|
||||
}, 1000);
|
||||
|
||||
// Deep copy
|
||||
const _theme = JSON.parse(JSON.stringify(theme));
|
||||
|
|
|
@ -22,9 +22,7 @@ html, body
|
|||
|
||||
html.changing-theme
|
||||
&, *
|
||||
transition-property all
|
||||
transition-duration 0.5s
|
||||
transition-timing-function ease
|
||||
transition background 1s ease
|
||||
|
||||
a
|
||||
text-decoration none
|
||||
|
|
Loading…
Reference in New Issue