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}"
   alt="<!--{$alt|escape|default:'3D Model'}-->">
   {if $width}width="{$width|escape}"{/if}
   {if $width}width="{$width|escape}"{/if}
   {if $height}height="{$height|escape}"{/if}
   {if $height}height="{$height|escape}"{/if}

Revision as of 16:02, 30 July 2025

<model-viewer

 src="" 
 alt="">
 {if $width}width="{$width|escape}"{/if}
 {if $height}height="{$height|escape}"{/if}
 {if $autorotate}auto-rotate{/if}
 {if $cameracontrols}camera-controls{/if}
 {if $backgroundcolor}background-color="{$backgroundcolor|escape}"{/if}>

</model-viewer>