Import a 3D Model and automatically assign and export animations
TypeScript
Cleanup animation bottom animation player a little
Scott Petrovicf5d4f0ea2547
diff --git a/src/animation-player.css b/src/animation-player.cssindex 15ddeb1..5ccda51 100644--- a/src/animation-player.css+++ b/src/animation-player.css@@ -1,36 +1,61 @@/* Free-floating Animation Player at bottom of screen */#animation-player {position: fixed;- bottom: 20px;- left: 50%;+ bottom: 0;+ left: 43%;transform: translateX(-50%);display: flex;+ flex-direction: column;align-items: center;- gap: 15px;+ gap: 0;background: var(--bg-primary);border: 1px solid var(--bg-tertiary);- border-radius: 30px;+ border-radius: 1.0rem;+ border-bottom-left-radius: 0;+ border-bottom-right-radius: 0;padding: 12px 20px;backdrop-filter: blur(10px);z-index: 1000;- min-width: 450px;visibility: hidden; /* Hidden by default until animation is loaded */transition: all 0.3s ease;+ width: 40rem;}+@media (max-width: 1200px) {+ #animation-player {+ width: 30rem;+ }+}+@media (max-width: 1000px) {+ #animation-player {+ width: 15rem;+ }+}++#animation-player.visible {visibility: visible;}+#current-animation-container {+ display: flex;+ width: 100%;+ justify-content: center;+ align-self: center;+}+#current-animation-name {font-size: 14px;font-weight: 600;color: var(--text-primary);white-space: nowrap;- max-width: 150px;- overflow: hidden;- text-overflow: ellipsis;- min-width: 120px;+}++#play-controls {+ display: flex;+ align-items: center;+ gap: 8px;+ width: 100%;}.animation-control-button {@@ -70,6 +95,12 @@-webkit-appearance: none;margin: 0 8px;}+@media (max-width: 1000px) {+ #animation-scrubber {+ display: none;+ }+}+#animation-scrubber::-webkit-slider-track {height: 8px;@@ -93,3 +124,7 @@transform: scale(1.1);box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);}++#current-time, #total-time {+ width: 1.2rem; /* enough space to fit 3 digits */+}\ No newline at end of filediff --git a/src/index.html b/src/index.htmlindex d9c783b..ec669ca 100644--- a/src/index.html+++ b/src/index.html@@ -344,15 +344,20 @@<!-- Free-floating Animation Player --><div id="animation-player">- <span id="current-animation-name">No animation selected</span>- <button id="play-pause-button" class="animation-control-button" disabled>- <span class="material-symbols-outlined">play_arrow</span>- </button>- <span>- <span id="current-time">0f</span> /- <span id="total-time">0f</span>- </span>- <input type="range" id="animation-scrubber" min="0" max="100" value="0" disabled>+ <div id="current-animation-container">+ <span id="current-animation-name">No animation selected</span>+ </div>+ <div id="play-controls">+ <button id="play-pause-button" class="animation-control-button" disabled>+ <span class="material-symbols-outlined">play_arrow</span>+ </button>+ <span>+ <span id="current-time">0f</span> /+ <span id="total-time">0f</span>+ </span>+ <input type="range" id="animation-scrubber" min="0" max="100" value="0" disabled>+ </div>+</div><!-- info panel for messages and information-->