Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Have animations listing scrollable if the list is too long

Scott Petrovicc682881b40e8
diff --git a/src/index.html b/src/index.html
index d9338bf..2ea6b12 100644
--- a/src/index.html
+++ b/src/index.html
@@ -139,14 +139,10 @@
<div>Export</div>
</div>
- <hr />
-
<!-- javascript will populate this item with animations
that we get from the animations file(s) -->
<div id="animations-items"> </div>
-
-
<button id="export-button">Export to GLB</button>
<a id="download-hidden-link" href="#" style="display:none"></a>
</div>
diff --git a/src/styles.css b/src/styles.css
index 428b05d..69b0ff1 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -206,9 +206,38 @@ option {
}
+/* width */
+::-webkit-scrollbar {
+ width: 14px;
+ }
+
+ /* Track */
+ ::-webkit-scrollbar-track {
+ background: rgb(60, 82, 155);
+ }
+
+ /* Handle */
+ ::-webkit-scrollbar-thumb {
+ background: rgb(184, 210, 214);
+ border-radius: 4px;
+ }
+
+ /* Handle on hover */
+ ::-webkit-scrollbar-thumb:hover {
+ background: rgb(126, 152, 156);
+ }
+
+#animations-items{
+ max-height: 15rem;
+ display: flex;
+ overflow: auto;
+ flex-direction: column;
+ margin-bottom: 1rem;
+ border: 1px solid #5693ca;
+}
#animations-items div {
display: flex;