-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (84 loc) · 1.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Visuals</title>
<style>
body {
background: #e3e8ee;
display: flex;
justify-content: flex-end;
align-items: flex-end;
height: 100vh;
padding: 0;
margin: 0;
}
.stacks {
display: flex;
flex-direction: column-reverse;
margin: auto auto 0;
position: relative;
min-height: 100vh;
width: 35vw;
}
.disk {
transform: rotate3d(1, 0, 0, 75deg) translateY(0px);
transition: all 220ms ease;
height: 10px;
width: 50vw;
border-radius: 50%;
transition: all 120ms ease;
left: 0;
}
.disk:hover {
transform: rotate3d(1, 0, 0, 0deg) translateY(-230px);
height: 180px;
z-index: 99999;
}
.disk:last-of-type {
transform: rotate3d(1, 0, 0, 60deg) translateY(-20px);
height: 180px;
z-index: 99999;
}
.disk #p-type-value {
fill: #ccc !important;
opacity: 0.3 !important;
}
.disk #p-type-ether {
fill: #ccc !important;
opacity: 0.3 !important;
}
</style>
</head>
<body>
<!-- <div class="stacks">
<div class="disk">
<img src="http://localhost:1001/visual/7900181.svg" >
</div>
<div class="disk disk1">
<img src="http://localhost:1001/visual/5612310.svg" >
</div>
<div class="disk disk2">
<img src="http://localhost:1001/visual/4900179.svg" >
</div>
</div> -->
<div id="stack" class="stacks"></div>
<script type="text/javascript">
const total = 50;
const start = 7901181;
// const parent = document.querySelector('.stacks')
const parent = document.getElementById('stack')
const getDisk = (num, idx) => {
return `
<div id="b${num}" class="disk disk${idx}">
<img src="http://localhost:1001/visual/${num}.svg" >
</div>
`
}
for (let i = 0; i < total; i++) {
// parent.appendChild(getDisk(start - i, i))
parent.insertAdjacentHTML('afterbegin', getDisk(start - i, i))
}
</script>
</body>
</html>