Skip to content

Commit a849bc4

Browse files
chore: use scale instead of height for slot status animation
1 parent 7ac13c9 commit a849bc4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/features/Navigation/slotsRenderer.module.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@
138138

139139
.slot-status-progress {
140140
width: 100%;
141-
height: 0;
141+
height: 100%;
142+
transform-origin: bottom;
143+
will-change: transform;
142144
animation: fillProgress var(--slot-duration) ease-in-out forwards;
143145
background-color: var(--slot-status-blue);
144146
}
@@ -159,10 +161,10 @@
159161

160162
@keyframes fillProgress {
161163
from {
162-
height: 0;
164+
transform: scaleY(0);
163165
}
164166
to {
165-
height: 100%;
167+
transform: scaleY(1);
166168
}
167169
}
168170

0 commit comments

Comments
 (0)