-
Notifications
You must be signed in to change notification settings - Fork 0
/
model1.html
45 lines (43 loc) · 1.23 KB
/
model1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>it`s me RONAK</title>
<style>
*{
background-color: rgb(120, 120, 158);
overflow: hidden;
}
.model model-viewer{
top: 0vh;
width: 1991px;
height: 980px;
margin: 0 auto;
left: 0vh;
position: absolute;
}
@media screen and (max-width:600px){
.model model-viewer{
top: 0vh;
left: -6vw;
width: 434px;
height: 700px;
margin: 0 auto;
}
}
</style>
</head>
<body>
<div class="model">
<model-viewer ar ar-modes="scene-viewer style="width: 1991px;height: 980px;background-color: rgb(0 0 0);"bxr" camera-orbit="calc(1.5rad + env(window-scroll-y) * 4rad) calc(0deg + env(window-scroll-y) * 180deg) " src="newmodel.glb" shadow-intensity="2" camera-controls auto-rotate ></model-viewer>
</div>
<script type="module"
src="https://unpkg.com/@google/model-viewer@v0.7.2/dist/model-viewer.js">
</script>
<script nomodule
src="https://unpkg.com/@google/model-viewer@v0.7.2/dist/model-viewer-legacy.js">
</script>
</body>
</html>