made the anim work for admins too

This commit is contained in:
2024-01-25 21:11:41 +01:00
parent 82cf0085b4
commit 8accaa58f4
3 changed files with 11 additions and 14 deletions

View File

@@ -14,11 +14,13 @@ document.addEventListener('DOMContentLoaded', function () {
void h2.offsetWidth;
// Apply the fade-in effect
h1.style.transition = 'opacity 0.8s ease, transform 0.6s ease';
h1.style.opacity = '1';
h1.style.transform = 'translateX(0)';
setTimeout(function () {
h1.style.transition = 'opacity 0.8s ease, transform 0.6s ease';
h1.style.opacity = '1';
h1.style.transform = 'translateX(0)';
h2.style.transition = 'opacity 0.8s ease, transform 0.6s ease';
h2.style.opacity = '1';
h2.style.transform = 'translateX(0)';
h2.style.transition = 'opacity 0.8s ease, transform 0.6s ease';
h2.style.opacity = '1';
h2.style.transform = 'translateX(0)';
}, 250);
});