Add a 3D model to any section using the model or 3d type. Supports .glb files.
3D models can be used in any section type. You can only use one model per section. To add multiple models, use Groups.
Wrong — plain path without type:
"assets/models/model.glb"
Right — full object format:
"model": {
"src": "assets/models/model.glb",
"ratio": "1/1",
"rotate": true,
"caption": "Drag to interact"
}
Right — shorthand:
"model": "assets/models/model.glb"
| Field | Description |
|---|---|
type | "model" or "3d" |
src | Path to .glb file (local or remote URL) |
ratio | Aspect ratio like "1/1" (default 1/1) |
rotate | Set true to auto-rotate (default true) |
caption | Optional text below the model |
{
"type": "model",
"src": "assets/models/model.glb"
}
{
"type": "model",
"src": "assets/models/model.glb",
"ratio": "16/9"
}
Drag to rotate, scroll to zoom.
{
"type": "model",
"src": "assets/models/model.glb",
"caption": "Drag to rotate, scroll to zoom."
}
Auto-rotate is off. User must drag to rotate.
{
"type": "model",
"src": "assets/models/model.glb",
"rotate": false
}