MarseyWorld/files/assets/events/homoween/js/banner.js

10 lines
276 B
JavaScript
Raw Normal View History

2023-09-28 23:58:09 +00:00
const el = document.getElementById("banner-homoween-title");
2023-10-15 14:05:32 +00:00
const letters = el.getElementsByTagName("tspan");
2023-09-28 23:58:09 +00:00
2023-10-15 14:05:32 +00:00
for (let i = 0; i < letters.length; i++) {
letters.item(i).style.transition = `all 600ms ${600 + i * 40}ms`;
2023-09-28 23:58:09 +00:00
}
2023-10-15 14:05:32 +00:00
setTimeout(() => el.classList.add("life"), 1000);