Skip to content

Commit

Permalink
simplified progress bar CSS for easier styling (google#2414)
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish authored May 24, 2021
1 parent 9a72ce7 commit 5ab734c
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions packages/model-viewer/src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,30 +171,16 @@ canvas.show {
left: 0;
width: 100%;
height: var(--progress-bar-height, 5px);
background-color: var(--progress-bar-color, rgba(0, 0, 0, 0.4));
transition: transform 0.09s;
transform-origin: top left;
transform: scaleX(0);
overflow: hidden;
}
#default-progress-bar > .bar:before {
content: '';
display: block;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--progress-bar-color, rgba(0, 0, 0, 0.4));
transition: none;
transform-origin: top left;
transform: translateY(0);
}
#default-progress-bar > .bar.hide:before {
transition: transform 0.3s 1s;
transform: translateY(-100%);
#default-progress-bar > .bar.hide {
transition: opacity 0.3s 1s;
opacity: 0;
}
.slot.interaction-prompt {
Expand Down

0 comments on commit 5ab734c

Please sign in to comment.