Easily display your 3D elements on Web or in AR.
- Start with an index.html file.
- Then we have to add
<model-viewer>tag and script link in
<script>tag as shown in example.
<model-viewer>is not default tag. It imported from script with type module not text.
It uses glTF & GLB extension models for rendering. You can zoom and rotate it.
Check out <model-viewer website for more information.
Try out your glTF & GLB models with
<model-viewer> is supported on the last two major versions of all evergreen desktop and mobile browsers, plus the last two versions of Safari (on MacOS and iOS).
Comment below if you have any query or suggestion. I hope you’ll find this helpful, Thanks for reading 🙂