const tagline = "The coven awakens, a new era of idols will emerge from the shadows."; const container = document.getElementById("tagline"); function typeWithGlow(text, delay = 30) { [...text].forEach((char, i) => { const span = document.createElement("span"); span.className = "tag-char"; span.innerHTML = char === " " ? " " : char; span.style.animationDelay = `${i * delay}ms`; container.appendChild(span); }); } setTimeout(() => { typeWithGlow(tagline, 50); }, 2500); function fadeAndGo() { const fade = document.getElementById('fade'); fade.classList.add('active'); setTimeout(() => { window.location.href = 'contract.html'; }, 1000); } if (localStorage.getItem('signedName')) { window.location.href = 'home.html'; } const cursor = document.getElementById('cursor'); document.addEventListener('mousemove', (e) => { cursor.style.left = e.pageX + 'px'; cursor.style.top = e.pageY + 'px'; const mist = document.createElement('div'); mist.className = 'mist-trail'; mist.style.left = `${e.pageX}px`; mist.style.top = `${e.pageY}px`; document.body.appendChild(mist); setTimeout(() => mist.remove(), 1000); });