Archived
First try
This commit is contained in:
commit
7bd95a9019
2 files changed
+37
No files matched your search
+37
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>My Inventor 3D Showcase</title>
|
||||
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.4.0/model-viewer.min.js"></script>
|
||||
<style>
|
||||
body { margin: 0; font-family: sans-serif; display: flex; flex-direction: column; align-items: center; }
|
||||
header { padding: 20px; text-align: center; }
|
||||
/* This sizes the 3D window */
|
||||
model-viewer {
|
||||
width: 80%;
|
||||
height: 600px;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<h1>Autodesk Inventor Project</h1>
|
||||
<p>Drag to rotate | Scroll to zoom</p>
|
||||
</header>
|
||||
|
||||
<model-viewer
|
||||
src="my_model.glb"
|
||||
ar
|
||||
camera-controls
|
||||
shadow-intensity="1"
|
||||
auto-rotate
|
||||
touch-action="pan-y">
|
||||
</model-viewer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user