Import a 3D Model and automatically assign and export animations
TypeScript
/* Free-floating Animation Player at bottom of screen */
#animation-player {
position: fixed;
bottom: 0;
left: 38%;
transform: translateX(-50%);
display: none; /* Hidden by default, shown only during AnimationsListing step */
flex-direction: column;
align-items: center;
gap: 0;
background: var(--bg-primary);
border: 1px solid var(--bg-tertiary);
border-radius: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
padding: 0;
backdrop-filter: blur(10px);
z-index: 1000;
transition: all 0.3s ease;
width: 40rem;
}
@media (max-width: 1200px) {
#animation-player {
width: 30rem;
}
}
@media (max-width: 1000px) {
#animation-player {
width: 8rem;
}
}
#animation-player.visible {
visibility: visible;
}
#current-animation-container {
position: absolute;
top: -2.2rem; /* position slightly above timeline */
}
#play-controls {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 0;
}
.animation-control-button {
width: 30px;
height: 30px;
border-radius: 0;
border: none;
background: var(--button-primary-bg);
box-shadow: none;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.animation-control-button:hover:not(:disabled) {
background: var(--button-alternate-bg);
transform: scale(1.05);
}
#animation-scrubber {
flex: 1;
height: 4px;
border-radius: 4px;
background: var(--bg-tertiary);
outline: none;
cursor: pointer;
min-width: 180px;
appearance: none;
-webkit-appearance: none;
margin: 0 8px;
}
@media (max-width: 1000px) {
#animation-scrubber {
display: none;
}
}
#animation-scrubber::-webkit-slider-track {
height: 8px;
border-radius: 4px;
background: var(--bg-primary);
}
#animation-scrubber::-webkit-slider-thumb {
appearance: none;
width: 15px;
height: 15px;
opacity: 1.0;
border-radius: 50%;
background: var(--button-primary-bg);
cursor: pointer;
border: 3px solid var(--text-primary);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
transition: all 0.2s ease;
}
#animation-scrubber::-webkit-slider-thumb:hover {
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 */
}