Jump to content

Widget:ModelViewer: Difference between revisions

From Survivalcraft Wiki
No edit summary
No edit summary
Line 1: Line 1:
<model-viewer  
<model-viewer  
  src="<!--{$src|escape}-->"  
    src="<!--{$src|escape}-->"  
  alt="<!--{$alt|escape|default:'3D Model'}-->">
    alt="<!--{$alt|escape|default:'3D Model'}-->"
  {if $width}width="{$width|escape}"{/if}
    width="<!--{$width|escape|default:'100%'}-->"
  {if $height}height="{$height|escape}"{/if}
    height="<!--{$height|escape|default:'400px'}-->"
  {if $autorotate}auto-rotate{/if}
    <!--{if $autorotate}-->auto-rotate<!--{/if}-->
  {if $cameracontrols}camera-controls{/if}
    <!--{if $cameracontrols}-->camera-controls<!--{/if}-->>
  {if $backgroundcolor}background-color="{$backgroundcolor|escape}"{/if}>
</model-viewer>
</model-viewer>

Revision as of 16:04, 30 July 2025

<model-viewer

   src="" 
   alt=""
   width=""
   height=""
   auto-rotate
   camera-controls>

</model-viewer>