Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633003 Views

Latest files of /cody/bradtraversy/50projects50days/3d-boxes-background

style.css cody/bradtraversy/50projects50days/3d-boxes-background/style.css
73 Views
0 Comments
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
box-sizing: border-box;
}

body {
3D Boxes BackGround cody/bradtraversy/50projects50days/3d-boxes-background/index.html
243 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
script.js cody/bradtraversy/50projects50days/3d-boxes-background/script.js
76 Views
0 Comments
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++) {