Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Minor styling tweaks

Scott Petrovic9c0507aa066c
diff --git a/src/animation-player.css b/src/animation-player.css
index d8581f0..ca8d5bb 100644
--- a/src/animation-player.css
+++ b/src/animation-player.css
@@ -10,10 +10,10 @@
gap: 0;
background: var(--bg-primary);
border: 1px solid var(--bg-tertiary);
- border-radius: 0.5rem;
+ border-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
- padding: 5px 10px;
+ padding: 0;
backdrop-filter: blur(10px);
z-index: 1000;
transition: all 0.3s ease;
@@ -47,14 +47,16 @@
align-items: center;
gap: 8px;
width: 100%;
+ padding: 0;
}
.animation-control-button {
width: 30px;
height: 30px;
- border-radius: 15%;
+ border-radius: 0;
border: none;
background: var(--button-primary-bg);
+ box-shadow: none;
color: white;
cursor: pointer;
display: flex;
@@ -76,7 +78,7 @@
#animation-scrubber {
flex: 1;
- height: 8px;
+ height: 4px;
border-radius: 4px;
background: var(--bg-tertiary);
outline: none;
@@ -101,12 +103,13 @@
#animation-scrubber::-webkit-slider-thumb {
appearance: none;
- width: 20px;
- height: 20px;
+ width: 15px;
+ height: 15px;
+ opacity: 1.0;
border-radius: 50%;
background: var(--button-primary-bg);
cursor: pointer;
- border: 3px solid white;
+ border: 3px solid var(--text-primary);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
transition: all 0.2s ease;
}
diff --git a/src/index.html b/src/index.html
index 537fe3e..39a672e 100644
--- a/src/index.html
+++ b/src/index.html
@@ -47,7 +47,7 @@
<!-- create a radio button group. There are two options. Move Skeleton, Rotate Mesh -->
<div id="tool-selection-group">
- <div style="margin-bottom: 1rem;">
+ <div style="margin-bottom: 1rem; padding: 0;">
<div id="current-step-index"></div>
<div id="current-step-label"></div>
</div>
diff --git a/src/styles.css b/src/styles.css
index 16a2b15..2ba4fdc 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -14,6 +14,8 @@
--button-alternate-bg: rgba(175, 58, 190, 0.521);
--button-shadow-color: rgba(65, 48, 124, 0.705);
+ --current-step-indicator: rgb(20, 43, 59);
+
--radio-button-group-bg: rgb(81, 114, 151);
--radio-button-group-hover: rgb(37, 65, 97);
}
@@ -27,10 +29,12 @@
--bg-alternate: #cdd7dd;
--bg-tertiary: #8b9bac;
- --button-primary-bg: #73b6e2c7;
+ --button-primary-bg: #73b6e2f8;
--button-alternate-bg: rgb(176, 216, 240);
--button-shadow-color: #70a3c5;
+ --current-step-indicator: rgb(169, 205, 214);
+
--radio-button-group-bg: rgb(169, 193, 224);
--radio-button-group-hover: rgb(221, 227, 241);
}
@@ -143,8 +147,8 @@ button.secondary-button.play
button, .button {
background: var(--button-primary-bg);
background: linear-gradient(180deg, var(--button-primary-bg) 0%, var(--button-alternate-bg) 100%);
- box-shadow: 3px 3px 2px var(--button-shadow-color);
- padding: 0.75rem 1.0rem;
+ box-shadow: 3px 3px 2px var(--button-shadow-color);
+ padding: 0.3rem 0.8rem;
margin-right: 0.5rem;
border: 1px solid var(--button-shadow-color);
border-radius: 0.25rem;
@@ -222,14 +226,11 @@ option {
#current-step-index {
font-size: 15px;
- background: var(--bg-alternate);
- background: linear-gradient(150deg, var(--bg-primary) 3%, var(--bg-alternate) 100%);
- padding: 0.7rem;
- border-radius: 39px;
- color: var(--text-primary);
- width: 16px;
+ background: var(--current-step-indicator);
+ padding: 0.5rem 1rem;
+ border-radius: 1rem;
+ color: var(--text-primary);
text-align: center;
- font-weight: 700;
}
#current-step-label {
@@ -239,7 +240,7 @@ option {
#load-model-tools, #load-skeleton-tools, #transform-controls, #skeleton-step-actions {
display: flex;
flex-direction: column;
- row-gap: 0.7rem;
+ row-gap: 0.4rem;
}
#tool-panel {