-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
58 lines (46 loc) · 816 Bytes
/
style.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
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
:root {
--speed: 5;
}
body {
background-color: lightgreen;
}
.machine {
background-color: lightcoral;
border: dashed lightsalmon 3px;
height: 300px;
width: 900px;
margin: auto;
margin-top: 10%;
display: flex;
}
#inpSpeed {
text-align: center;
font-size: 20pt;
width: 50px;
margin-left: 630px;
}
.slot {
height: 250px;
width: 250px;
margin: 20px;
overflow: hidden;
background-color: lightslategrey;
border: solid lightseagreen;
text-align: center;
font-size: 100pt;
line-height: 250px;
}
.slot .value {
display: inline-block;
animation-name: slotspin;
animation-iteration-count: infinite;
animation-duration: calc(1s / var(--speed));
}
@keyframes slotspin {
0% {
transform: translateY(-200px);
}
100% {
transform: translateY(250px);
}
}