-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPickerWheel.css
More file actions
102 lines (90 loc) · 1.65 KB
/
PickerWheel.css
File metadata and controls
102 lines (90 loc) · 1.65 KB
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
97
98
99
100
101
102
.picker-wheel-container {
display: flex;
align-items: flex-start;
gap: 20px;
}
.wheel-wrapper {
position: relative;
width: 600px;
height: 600px;
}
.pin {
position: absolute;
top: -10px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-top: 30px solid #10b981;
z-index: 10;
}
.wheel {
border-radius: 50%;
border: 4px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}
.slow-spin {
animation: slow-spin 20s linear infinite;
}
@keyframes slow-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.spin-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100px;
height: 100px;
border-radius: 50%;
background-color: #050505;
color: #fff;
border: 4px solid #fff;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
justify-content: center;
align-items: center;
text-align: center;
z-index: 20;
}
.spin-button:hover:not(:disabled) {
background-color: #10b981;
color: #000;
border-color: #10b981;
transform: translate(-50%, -50%) scale(1.1);
}
.spin-button:disabled {
cursor: not-allowed;
opacity: 0.2;
}
.controls {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.controls input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
.controls button {
padding: 10px 15px;
border: none;
border-radius: 5px;
background-color: #333;
color: #fff;
cursor: pointer;
}
.winner {
margin-bottom: 20px;
font-size: 24px;
font-weight: bold;
}