Interface_Allixa / index.js
DHEIVER's picture
Update index.js
43e0b1e verified
raw
history blame contribute delete
343 Bytes
// Cria os hexágonos do fundo
for (let i = 0; i < 100; i++) {
const hexagon = document.createElement('div');
hexagon.classList.add('hexagon');
// Posiciona o hexágono aleatoriamente
hexagon.style.left = Math.random() * 100 + 'vw';
hexagon.style.top = Math.random() * 100 + 'vh';
document.body.appendChild(hexagon);
}