2021-10-21 16:10:13 +00:00
|
|
|
document.querySelectorAll('body.animated').forEach(element => {
|
|
|
|
var animationDuration = 60;
|
|
|
|
var randomDuration = Math.random() * animationDuration;
|
|
|
|
element.style.animationDelay = -randomDuration + 's';
|
|
|
|
})
|
|
|
|
document.querySelectorAll('.animated-title').forEach(element => {
|
|
|
|
var animationDuration = 60;
|
|
|
|
var randomDuration = Math.random() * animationDuration;
|
|
|
|
element.querySelectorAll('.text').forEach(text => {
|
|
|
|
text.style.animationDelay = -randomDuration + 's';
|
2021-10-22 08:21:43 +00:00
|
|
|
})
|
2021-10-21 16:10:13 +00:00
|
|
|
})
|