This commit is contained in:
Richard Mikloš 2024-01-25 21:07:34 +01:00
parent 50745dac1b
commit 8170e13607

@ -14,6 +14,7 @@ document.addEventListener('DOMContentLoaded', function () {
void h2.offsetWidth; void h2.offsetWidth;
// Apply the fade-in effect // Apply the fade-in effect
setTimeout(function () {
h1.style.transition = 'opacity 0.8s ease, transform 0.6s ease'; h1.style.transition = 'opacity 0.8s ease, transform 0.6s ease';
h1.style.opacity = '1'; h1.style.opacity = '1';
h1.style.transform = 'translateX(0)'; h1.style.transform = 'translateX(0)';
@ -21,4 +22,5 @@ document.addEventListener('DOMContentLoaded', function () {
h2.style.transition = 'opacity 0.8s ease, transform 0.6s ease'; h2.style.transition = 'opacity 0.8s ease, transform 0.6s ease';
h2.style.opacity = '1'; h2.style.opacity = '1';
h2.style.transform = 'translateX(0)'; h2.style.transform = 'translateX(0)';
}, 100);
}); });