-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfor-iFrame.html
More file actions
85 lines (74 loc) · 2.9 KB
/
Copy pathfor-iFrame.html
File metadata and controls
85 lines (74 loc) · 2.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>
<title>Radial Gradients Example</title>
<style>
* {
margin: 0;
padding: 0;
}
html, body {
height: 200vh;
width: 100vw;
}
model-viewer {
height: 100vh;
width: 100vw;
touch-action: none;
position: fixed;
pointer-events: none; /* Disable interaction */
top: 0;
right: 0;
z-index: 2;
overflow: visible;
}
body {
height: 100vh;
width: 100vw;
opasity: 0%;
background-color: rgb(246, 246, 246); /* Light Gray Background */
background-image:
radial-gradient(at 40% 20%, hsla(28,100%,74%,1) 0px, transparent 50%), /* Top Left Gradient */
radial-gradient(at 80% 0%, hsla(189,100%,56%,1) 0px, transparent 50%), /* Top Right Gradient */
radial-gradient(at 0% 50%, hsla(355,100%,93%,1) 0px, transparent 50%), /* Middle Left Gradient */
radial-gradient(at 80% 50%, hsla(340,100%,76%,1) 0px, transparent 50%), /* Middle Right Gradient */
radial-gradient(at 0% 100%, hsla(22,100%,77%,1) 0px, transparent 50%), /* Bottom Left Gradient */
radial-gradient(at 80% 100%, hsla(242,100%,70%,1) 0px, transparent 50%), /* Bottom Right Gradient */
radial-gradient(at 0% 0%, hsla(343,100%,76%,1) 0px, transparent 50%); /* Center Gradient (Overlaid) */
background-repeat: no-repeat;
}
.center-fit {
pointer-events: auto; /* Enable interaction for the button */
}
</style>
</head>
<body>
<model-viewer
poster="https://error420notfound.github.io/Chair-AR/Frame%201.png"
src="https://error420notfound.github.io/Chair-AR/pipe-chair-glb-web%20exp%202.glb"
ar-modes="scene-viewer webxr quick-look"
ios-src="https://error420notfound.github.io/Chair-AR/Pipe%20Chair%201%203%20chairs.usdz?raw=true"
alt="A 3D model"
interaction-prompt="none"
camera-orbit="calc(-30deg + env(window-scroll-y) * 60deg) calc(35deg + env(window-scroll-y) * 60deg) calc(40m - env(window-scroll-y) * 0m)"
disable-pan
disable-zoom
disable-tap
shadow-intensity="1"
shadow-softness="0.456"
ar
reveal="auto"
loading="lazy"
generate-schema>
<button class="center-fit" slot="ar-button" style="background-color: rgba(255, 255, 255, 0.5);-webkit-backdrop-filter: blur(10px);
backdrop-filter:blur(10px); border: 0px; border-radius: 40px; margin: 0; position: fixed; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); z-index: 100; width: 120px; height: 40px;">
👋 View in AR
</button>
</model-viewer>
</div>
</body>
</html>