waifuism.life
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
waifuism/script.js

13 lines
506 B

document.addEventListener('DOMContentLoaded', function() {
const background = document.querySelector('.background');
const numLogos = 50; // Adjust the number of falling logos as needed
for (let i = 0; i < numLogos; i++) {
const logo = document.createElement('div');
logo.classList.add('falling-logo');
logo.style.left = Math.random() * 100 + '%';
logo.style.setProperty('--duration', (Math.random() * 5 + 3) + 's');
background.appendChild(logo);
}
});