-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
96 lines (86 loc) · 1.77 KB
/
index.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rock Scissors Paper</title>
<link rel="stylesheet" href="/style.css">
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #ff4242;
margin: 0;
}
.main {
text-align: center;
background-color: white;
padding: 20px;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
h2 {
margin-bottom: 20px;
}
.choices {
display: flex;
justify-content: center;
gap: 20px;
}
.choice {
border-radius: 10px;
margin-left: 10px;
font-size: 50px;
text-decoration: none;
transition: transform 0.2s;
cursor: pointer;
padding: 10px;
text-align: center;
transition: all 1s ease;
}
.choice:hover {
transform: scale(1.1);
transition: all 1s ease;
background-color: #333;
}
.choice:active {
transform: scale(0.9);
}
h3 {
margin-top: 20px;
font-size: 24px;
color: #333;
}
/* Animation for the result display */
.result-animation {
animation: fadeIn 0.5s;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style>
</head>
<body>
<div class="main">
<h2>Rock Scissors Paper!</h2>
<div class="choices">
<a href="#" id="scissor" class="choice">✌</a>
<a href="#" id="paper" class="choice">🖐</a>
<a href="#" id="rock" class="choice">👊</a>
</div>
<h3 id="result"></h3>
</div>
<script src="script.js"></script>
</body>
</html>