feat: shorten transition time

This commit is contained in:
2026-03-03 14:00:40 -06:00
parent f984a1f759
commit 3eae720221
2 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@
const overlay = document.createElement('div');
overlay.className = 'theme-switch-overlay fixed inset-0 pointer-events-none z-50';
overlay.style.opacity = '0';
overlay.style.transition = 'opacity 0.3s ease-out';
overlay.style.transition = 'opacity 0.15s ease-out';
document.body.appendChild(overlay);
}
@@ -130,7 +130,7 @@
overlay.style.opacity = '0';
}
document.documentElement.classList.remove('theme-switching');
}, 300);
}, 150);
}, 50);
},
{ passive: false }