html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!-- Happy weekend 🎈 -->
<!--
☁️ ☁️
🎈🎈
🎈🎈🎈
🎈🎈🎈🎈 ☁️
🎈🎈🎈🎈
☁️ 🎈🎈🎈
\ | /
😶🌫️ ☁️
🌅🌊
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Balloon Game | pop it to increase score and play song</title>
</head>
<body>
<div class="score">Score: <span id="score">0</span></div>
<div class="cloud cloud1"></div>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
body {
margin: 0;
padding: 0;
background: linear-gradient(to bottom, #87CEEB, #B0E0E6);
height: 100vh;
overflow: auto;
position: relative;
}
.balloon {
position: absolute;
width: 80px;
height: 100px;
border-radius: 50%;
animation: float 20s infinite ease-in-out;
cursor: pointer;
transition: transform 0.5s ease, opacity 0.5s ease;
}
.balloon::before {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
width: 2px;
height: 50px;
background: #000;
transform: translateX(-50%);
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
//song by clicking on screen
window.addEventListener("click",play);
function play(){ document.getElementById("peace").play();
}
alert("Click on the screen ")
alert(" Song will be played and hope that you will like it ...")
alert("click balloons to see magic ")
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run