Import a 3D Model and automatically assign and export animations
TypeScript
Use fixed position for header and canvas controls so they don't fight with canvas clicking
Scott Petrovic20db694f3d7b
diff --git a/src/index.html b/src/index.htmlindex a0d1690..339f477 100644--- a/src/index.html+++ b/src/index.html@@ -15,19 +15,19 @@<div id="header-ui">- <div>+ <div ><a href="https://mesh2motion.org"><img src="images/mesh2motion.svg" width="200" style="vertical-align: middle;"/></a></div>- <div>- <img src="images/mouse-left.svg" height="35" width="35" style="vertical-align: middle;"/> Rotate (Left drag)+ <div style="margin-left: 3rem">+ <img src="images/mouse-left.svg" height="30" width="30" style="vertical-align: middle;"/> Rotate</div><div>- <img src="images/mouse-right.svg" height="35" width="35" style="vertical-align: middle;"/> Pan (Right drag)+ <img src="images/mouse-right.svg" height="30" width="30" style="vertical-align: middle;"/> Pan</div><div>- <img src="images/mouse-middle.svg" height="35" width="35" style="vertical-align: middle;"/> Zoom (Middle scroll)+ <img src="images/mouse-middle.svg" height="30" width="30" style="vertical-align: middle;"/> Zoom</div></div>@@ -47,7 +47,7 @@<label for="model-upload" class="button" ><span class="button-icon-group"><span class="material-symbols-outlined" >upload</span>- <span>Upload Model</span>+ <span>Upload</span></span></label><input id="model-upload" type="file" name="file-upload" accept=".glb, .gltf, .fbx" />@@ -55,7 +55,7 @@<div style="text-align: center; font-size: 1.5rem">or</div><div style="display: flex; flex-direction: column; gap: 1rem; background-color: #0f2f3d; padding: 1rem;">- <p style="margin: 0">Upload sample model:</p>+ <p style="margin: 0">Use example:</p><select id="model-selection"><option value="models/human-mannequin.glb">Human</option><option value="models/fox.glb">Fox</option>diff --git a/src/styles.css b/src/styles.cssindex 33ffd16..f6ad07f 100644--- a/src/styles.css+++ b/src/styles.css@@ -348,8 +348,9 @@ input[type="file"] {#header-ui {display: flex;- gap: 2px;+ gap: 0;flex-direction: row;+ position: fixed;}/* Tooltip container */