Embedding 3d Scenes

Embed 3d content with <air-viewer/>

But you already know this.

Embedding

Simply copy and paste the script tags into your site's HTML, and you're all set.

Three.js logo
<script type="module" src="https://viewer.aircada.com/embedder.js"></script>

<air-viewer smartId="d047fada8"></air-viewer>

<air-viewer/> Attributes

Attribute
Description
Example
urlThe URL of the 3D scene to load. This is required.<air-viewer url="https://viewer.aircada.com/d5fff905b" />
smartidUnique identifier for the scene, alternative to `url`.<air-viewer smartid="d5fff905b" />
viewkeySecure key for accessing private scenes.<air-viewer viewkey="your-secret-key" />
background-colorSets the background color of the viewer (HEX or color name).<air-viewer background-color="#ffffff" />
styleApply custom CSS styles to the viewer.<air-viewer style="width: 100%; height: 500px;" />

Example Walkthrough

Embed any scene

Create and publish a scene, grab the embed code, and paste it into your site. Works with standard html, wordpress, shopify, react, angular, vue, and more.