Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

633159 Views

Latest files of /cody/bradtraversy/50projects50days/expanding-cards

style.css cody/bradtraversy/50projects50days/expanding-cards/style.css
86 Views
0 Comments
@import url('https://fonts.googleapis.com/css?family=Muli&display=swap');

* {
box-sizing: border-box;
}

body {
font-family: 'Muli', sans-serif;
index.html cody/bradtraversy/50projects50days/expanding-cards/index.html
267 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="style.css" />
<title>Expanding Cards</title>
</head>
script.js cody/bradtraversy/50projects50days/expanding-cards/script.js
94 Views
0 Comments
const panels = document.querySelectorAll('.panel')

panels.forEach(panel => {
panel.addEventListener('click', () => {
removeActiveClasses()
panel.classList.add('active')
})
})