2024-01-25 15:50:51 +01:00
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
|
|
var h1 = document.querySelector('.user-index-h1');
|
|
|
|
var h2 = document.querySelector('.user-index-h2');
|
|
|
|
|
2024-01-25 16:05:13 +01:00
|
|
|
// Trigger the reflow to restart the CSS animation
|
|
|
|
void h1.offsetWidth;
|
|
|
|
void h2.offsetWidth;
|
|
|
|
|
2024-01-25 16:01:20 +01:00
|
|
|
// Add the fade-in class to trigger the animation
|
|
|
|
h1.classList.add('fade-in');
|
|
|
|
h2.classList.add('fade-in');
|
2024-01-25 15:50:51 +01:00
|
|
|
});
|