Calculator Tools Calculator Tools
Create

Pop Fidget Game

Oct 4, 2023

About this app

A fun and interactive Pop Fidget game. Pop all the bubbles and have fun.

Pop Fidget Game

Related apps

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>Pop Fidget Game</title>
<meta name="description" content="A fun and interactive Pop Fidget game. Pop all the bubbles and have fun.">
<meta name="keywords" content="Game, Pop Fidget, Interactive">

<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">

<style>
body {
background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
font-family: 'Press Start 2P', cursive;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
color: white;
}

.bubble {
width: 50px;
height: 50px;
background: #fff;
border-radius: 50%;
margin: 10px;
box-shadow: 0 0 5px rgba(0, 0, 0, .3);
transition: all 0.3s ease;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
user-select: none;
}

.bubble.popped {
background: #888;
cursor: not-allowed;
}

.bubble.popped:after {
content: "🎉";
font-size: 20px;
}
</style>

<script>
document.addEventListener("DOMContentLoaded", function() {
var bubbles = document.querySelectorAll('.bubble');

bubbles.forEach(function(bubble) {
bubble.addEventListener('click', function() {
if (!this.classList.contains('popped')) {
this.classList.add('popped');
}
});
});
});
</script>
</head>

<body>
<div id="main-container" class="container">
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
<div class="bubble"></div>
</div>
</body>
</html>