scrimba
Code with AI
Games, Apps and more
FaceBomp game - part 2
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

FaceBomp game - part 2
AboutCommentsNotes
FaceBomp game - part 2
Expand for more info
styles.css
run
preview
console
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background: linear-gradient(to bottom, #00bfff, #0077b3);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
color: white;
}

h1 {
font-size: 3rem;
margin-bottom: 20px;
}

button {
background-color: #006bb3;
border: none;
color: white;
padding: 10px 20px;
font-size: 1rem;
cursor: pointer;
border-radius: 5px;
}

button:hover {
background-color: #005699;
}

#score {
font-size: 32px;
margin: 20px 0;
}

#timer {
font-size: 24px;
margin-bottom: 20px;
}

.game-board {
display: grid;
grid-template-columns: repeat(3, 150px);
gap: 20px;
margin-top: 30px;
}

.hole {
width: 150px;
height: 150px;
border-radius: 50%;
background-color: #005699;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.hole img {
width: 55%;
height: 55%;
object-fit: cover;
transition: transform 0.2s ease-in-out;
border-radius: 50%;
transform: scale(0);
}

.hole.active img {
transform: scale(1.1);
}
Console
/index.html
-13:35