changed even more
This commit is contained in:
parent
9b3ab8ecde
commit
279867cca4
@ -2,6 +2,10 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
var h1 = document.querySelector('.user-index-h1');
|
var h1 = document.querySelector('.user-index-h1');
|
||||||
var h2 = document.querySelector('.user-index-h2');
|
var h2 = document.querySelector('.user-index-h2');
|
||||||
|
|
||||||
|
// Trigger the reflow to restart the CSS animation
|
||||||
|
void h1.offsetWidth;
|
||||||
|
void h2.offsetWidth;
|
||||||
|
|
||||||
// Add the fade-in class to trigger the animation
|
// Add the fade-in class to trigger the animation
|
||||||
h1.classList.add('fade-in');
|
h1.classList.add('fade-in');
|
||||||
h2.classList.add('fade-in');
|
h2.classList.add('fade-in');
|
||||||
|
Loading…
Reference in New Issue
Block a user