баг-фикс 30/34

This commit is contained in:
Zuev
2026-07-19 14:40:43 +03:00
parent 3d798c13e3
commit bc0e1ab1b4
172 changed files with 13431 additions and 2910 deletions

View File

@@ -35,14 +35,9 @@
/* Swap icon immediately and trigger a gentle rotate via CSS */
btn.innerHTML = goLight ? sunSVG : moonSVG;
const svg = btn.querySelector('svg');
svg.style.transition = 'none';
svg.style.transform = 'rotate(-90deg) scale(0.5)';
svg.style.opacity = '0';
requestAnimationFrame(() => {
svg.style.transition = 'transform 0.4s ease, opacity 0.3s ease';
svg.style.transform = 'rotate(0deg) scale(1)';
svg.style.opacity = '1';
});
svg.classList.remove('theme-toggle-icon-enter');
void svg.offsetWidth;
svg.classList.add('theme-toggle-icon-enter');
});
/* Where to place the button */