Chuyển đến nội dung
window.addEventListener("load", function () {
const rainContainer = document.querySelector('.rain-effect');
if (!rainContainer) return;
for (let i = 0; i < 100; i++) {
const drop = document.createElement('div');
drop.classList.add('raindrop');
drop.style.left = Math.random() * 100 + 'vw';
drop.style.top = Math.random() * -100 + 'vh';
drop.style.animationDuration = (0.5 + Math.random() * 1.5) + 's';
drop.style.animationDelay = (Math.random() * 5) + 's';
rainContainer.appendChild(drop);
}
});