Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

model viewer html

<!-- Import the component -->
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>

<!-- Use it like any other HTML element -->
<model-viewer alt="Neil Armstrong's Spacesuit from the Smithsonian Digitization Programs Office and National Air and Space Museum" src="shared-assets/models/NeilArmstrong.glb" ar ar-modes="webxr scene-viewer quick-look" environment-image="shared-assets/environments/moon_1k.hdr" poster="shared-assets/models/NeilArmstrong.webp" seamless-poster shadow-intensity="1" camera-controls enable-pan></model-viewer>
Source by modelviewer.dev #
 
PREVIOUS NEXT
Tagged: #model #viewer #html
ADD COMMENT
Topic
Name
5+6 =