mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
[Client] Better transition
This commit is contained in:
parent
6641d3b35b
commit
f7890b696d
2 changed files with 2 additions and 4 deletions
|
@ -47,7 +47,7 @@ export function applyTheme(theme: Theme, persisted = true) {
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.documentElement.classList.remove('changing-theme');
|
document.documentElement.classList.remove('changing-theme');
|
||||||
}, 500);
|
}, 1000);
|
||||||
|
|
||||||
// Deep copy
|
// Deep copy
|
||||||
const _theme = JSON.parse(JSON.stringify(theme));
|
const _theme = JSON.parse(JSON.stringify(theme));
|
||||||
|
|
|
@ -22,9 +22,7 @@ html, body
|
||||||
|
|
||||||
html.changing-theme
|
html.changing-theme
|
||||||
&, *
|
&, *
|
||||||
transition-property all
|
transition background 1s ease
|
||||||
transition-duration 0.5s
|
|
||||||
transition-timing-function ease
|
|
||||||
|
|
||||||
a
|
a
|
||||||
text-decoration none
|
text-decoration none
|
||||||
|
|
Loading…
Reference in a new issue