-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
97 lines (83 loc) · 2.21 KB
/
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
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
:root{
--gold: #FFB900;
--yellow: #FFFF00;
--white-smoke: #E2DFD5;
--background: #000000;
--gray: #465862;
--unit: 10px;
--container-width: 650px;
}
body {
background: var(--background);
margin: 0;
padding-top: 50px;
padding-left: 50px;
}
.container{
position: relative;
width: 600px;
display: flex;
flex-direction: column;
gap: var(--unit);
overflow: hidden;
}
.container:hover::before{
content: "";
position: absolute;
width: 50%;
height: 100%;
opacity: .5;
background: red;
}
.container:hover{
border: 2px solid white;
}
.row{
height: var(--unit);
display: flex;
justify-content: center;
gap: var(--unit);
translate: var(--offset);
animation: load-row 1s calc(var(--delay ) * 100ms + 500ms) forwards;
}
.cell {
height: 100%;
width: calc(var(--size, 2) * var(--unit));
background-color: var(--gray);
border-radius: 1000px;
}
.cell.size-3 { --size: 2;}
.cell.size-4 { --size: 4;}
.cell.size-6 { --size: 6;}
.cell.size-8 { --size: 8;}
.cell.size-10 { --size: 10;}
.cell.size-12 { --size: 12;}
.cell.size-14 { --size: 14;}
.cell.size-16 { --size: 16;}
.cell.size-18 { --size: 18;}
.cell.gold { background-color: var(--gold)}
.cell.yellow { background-color: var(--yellow)}
.row:nth-child(1){--delay: 1; --offset: 150px;}
.row:nth-child(2){--delay: 2; --offset: -150px;}
.row:nth-child(3){--delay: 3; --offset: 200px;}
.row:nth-child(4){--delay: 4; --offset: -150px;}
.row:nth-child(5){--delay: 5; --offset: 150px;}
.row:nth-child(6){--delay: 6; --offset: -150px; }
.row:nth-child(7){--delay: 7; --offset: 150px;}
.row:nth-child(8){--delay: 8; --offset: -150px;}
.row:nth-child(9){--delay: 9; --offset: 150px;}
.row:nth-child(10){--delay: 10; --offset: -150px;}
.row:nth-child(11){--delay: 11; --offset: 200px;}
.row:nth-child(12){--delay: 12; --offset: -150px;}
.row:nth-child(13){--delay: 13; --offset: 150px;}
.row:nth-child(14){--delay: 14; --offset: -150px;}
.row:nth-child(15){--delay: 15; --offset: 150px;}
.row:nth-child(16){--delay: 16; --offset: -150px;}
.row:nth-child(17){--delay: 17; --offset: 150px;}
.row:nth-child(18){--delay: 18; --offset: -150px;}
.row:nth-child(19){--delay: 19; --offset: 150px;}
@keyframes load-row {
100% {
translate: 0;
}
}