-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (81 loc) · 2.23 KB
/
index.html
File metadata and controls
91 lines (81 loc) · 2.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="data:," />
<style>
html,
body {
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
#model-loading-overlay {
position: fixed;
inset: 0;
z-index: 20000;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
background: #1a1a1a;
color: #fff;
font-family: system-ui, sans-serif;
transition: opacity 0.35s ease;
}
#model-loading-overlay.is-hidden {
opacity: 0;
pointer-events: none;
}
.loading-title {
font-size: 1.25rem;
font-weight: 600;
letter-spacing: 0.04em;
}
.loading-spinner {
width: 44px;
height: 44px;
border: 3px solid rgba(255, 255, 255, 0.15);
border-top-color: #fff;
border-radius: 50%;
animation: loading-spin 0.85s linear infinite;
}
@keyframes loading-spin {
to {
transform: rotate(360deg);
}
}
.loading-progress-track {
width: min(280px, 70vw);
height: 4px;
background: rgba(255, 255, 255, 0.12);
border-radius: 2px;
overflow: hidden;
}
.loading-progress-bar {
height: 100%;
width: 0%;
background: #fff;
border-radius: 2px;
transition: width 0.15s ease;
}
.loading-percent {
font-size: 0.85rem;
opacity: 0.7;
font-variant-numeric: tabular-nums;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/controls/OrbitControls.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/loaders/DRACOLoader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/loaders/GLTFLoader.js"></script>
<script src="carViewer.js" defer></script>
<title>Sunburst Visualizer</title>
</head>
<body></body>
</html>