-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
87 lines (70 loc) · 1.31 KB
/
style.css
File metadata and controls
87 lines (70 loc) · 1.31 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
:root {
--speed: 5;
}
.machine {
background-color: peru;
border: dashed brown 3px;
height: 300px;
width: 900px;
margin: 50px;
z-index: 5;
display: inline-flex;
justify-content: space-evenly;
align-items: center;
}
/* #inpSpeed {
font-size: 30pt;
margin-left: 30px;
width: 50px;
} */
.slot {
height: 250px;
width: 250px;
/* margin: 20px; */
background-color: beige;
border: solid darkblue;
z-index: 1;
overflow: hidden;
text-align: center;
font-size: 100pt;
line-height: 250px;
}
.value {
display: inline-block;
z-index: 3;
}
.animate {
animation-name: slotspin;
animation-iteration-count: infinite;
animation-duration: calc(1s/var(--speed));
}
.button {
height: 300px;
width: 300px;
margin: 50px;
display: inline-flex;
justify-content: center;
align-items: center;
transform: translateY(-35px);
}
.spin{
height: 150px;
width: 150px;
background-color: blue;
border: 1px dashed black;
border-radius: 50%;
color: white;
font-family: 'Times New Roman', Times, serif;
font-size: 30pt;
}
.stop{
background-color: orangered;
}
@keyframes slotspin {
0% {
transform: translateY(-200px);
}
100% {
transform: translateY(200px);
}
}