-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwelcome.html
63 lines (58 loc) · 1.67 KB
/
welcome.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>피로그래밍 21기💚</title>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #000;
}
.firework {
position: absolute;
width: 20px;
height: 20px;
background-color: rgba(255, 204, 0, 0.7); /* 노란색의 투명한 동그라미 */
border-radius: 50%;
animation: explode 1s linear infinite;
}
@keyframes explode {
0% {
transform: translateY(0) rotate(0);
opacity: 1;
}
100% {
transform: translateY(-40px) rotate(360deg);
opacity: 0;
}
}
#welcome-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
color: #fff;
text-align: center;
}
</style>
</head>
<div id="welcome-text">21기 피로그래밍 여러분 환영해요💚 <br>🌊 이번 여름 피로하게 🔥 코딩에 빠져봅시다 🏖️</div>
<script>
function createFirework() {
const firework = document.createElement('div');
firework.className = 'firework';
firework.style.left = Math.random() * window.innerWidth + 'px';
firework.style.top = Math.random() * window.innerHeight + 'px';
firework.style.animationDuration = Math.random() * 1 + 0.5 + 's';
document.body.appendChild(firework);
setTimeout(() => {
document.body.removeChild(firework);
}, 1000);
}
setInterval(createFirework, 200); // 폭죽이 매 0.2초마다 터지도록 설정
</script>
</body>
</html>