-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (63 loc) · 1.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Qvkare</title>
<link rel="icon" type="image/png" href="https://i.seadn.io/gcs/files/b42b091ca5120847fe59eef776466048.png">
<style>
/* CSS Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
overflow: hidden;
position: relative;
background-color: #f0f0f0; /* */
}
spline-viewer {
width: 100%;
height: 100%;
display: block;
}
/* Yükleme Barı Stilleri */
.loadingio-spinner-bean-eater-yvybsfsj4m {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1000; /* */
}
</style>
</head>
<body>
<div class="loadingio-spinner-bean-eater-yvybsfsj4m"><div class="ldio-06ug8mcle3ke">
<div><div></div><div></div><div></div></div><div><div></div><div></div><div></div></div>
</div></div>
<!-- Güncellenmiş Spline modeli URL'si -->
<spline-viewer url="https://prod.spline.design/ZmW3sQMArAFtod1v/scene.splinecode"></spline-viewer>
<script type="module">
import { Spline } from '@splinetool/viewer';
const splineViewer = document.querySelector('spline-viewer');
const loadingIndicator = document.querySelector('.loadingio-spinner-bean-eater-yvybsfsj4m');
// Sayfa yüklendiğinde yükleme animasyonunu göster
window.onload = function() {
setTimeout(function() {
// 15 saniye sonra yükleme animasyonunu gizle
loadingIndicator.style.display = 'none';
}, 15000); // 15000 milisaniye = 15 saniye
};
splineViewer.addEventListener('load', () => {
// Model yüklendiğinde, yükleme animasyonunu hemen gizle
// Bu kısım, model 15 saniyeden daha erken yüklendiğinde çalışır
loadingIndicator.style.display = 'none';
});
</script>
<!-- Spline Viewer sürümü -->
<script type="module" src="https://unpkg.com/@splinetool/[email protected]/build/spline-viewer.js"></script>
</body>
</html>