diff --git a/3d-boxes-background/script.js b/3d-boxes-background/script.js deleted file mode 100644 index 4f48d7a..0000000 --- a/3d-boxes-background/script.js +++ /dev/null @@ -1,17 +0,0 @@ -const boxesContainer = document.getElementById('boxes') -const btn = document.getElementById('btn') - -btn.addEventListener('click', () => boxesContainer.classList.toggle('big')) - -function createBoxes() { - for (let i = 0; i < 4; i++) { - for (let j = 0; j < 4; j++) { - const box = document.createElement('div') - box.classList.add('box') - box.style.backgroundPosition = `${-j * 125}px ${-i * 125}px` - boxesContainer.appendChild(box) - } - } -} - -createBoxes()