kantaphat's picture
Python binance th hedgefund
27d39ac verified
raw
history blame contribute delete
805 Bytes
document.addEventListener('DOMContentLoaded', () => {
// Add interactive cursor effect
const cursor = document.createElement('div');
cursor.classList.add('cursor');
document.body.appendChild(cursor);
document.addEventListener('mousemove', (e) => {
cursor.style.left = e.clientX + 'px';
cursor.style.top = e.clientY + 'px';
});
// Add typewriter effect to the heading
const heading = document.querySelector('h1 span:last-child');
const text = heading.textContent;
heading.textContent = '';
let i = 0;
const typeWriter = () => {
if (i < text.length) {
heading.textContent += text.charAt(i);
i++;
setTimeout(typeWriter, 100);
}
};
setTimeout(typeWriter, 1000);
});