This is a demo page for the model-viewer web component deployed on Cloudflare Pages.
Using a public glTF model from Khronos Group's sample assets.
A simple box model from glTF sample assets.
Using a PNG image for flat projection demonstration.
Using an animated GIF for flat projection demonstration.
Using an MP4 video file.
Click the Play button to start audio playback.
Viewing a PDF document with page navigation controls.
Enter a URL to test your own 3D models, images, videos, or audio files:
To use model-viewer in your project, include the script:
<script type="module" src="https://your-domain.pages.dev/model-viewer.min.js"></script>
Then use the component:
<model-viewer
src="path/to/your/model.glb"
alt="3D model"
camera-controls
ar
ar-modes="webxr scene-viewer quick-look">
</model-viewer>