mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01:00
Improve progress-bar-stripes animation (#28697)
- `background-position: 0 0;` is the default background position, so redundant - The background position should only be animated in the x direction - `0%` is a little shorter than `from`
This commit is contained in:
parent
336778f463
commit
b327c34ce3
@ -1,8 +1,7 @@
|
|||||||
// Disable animation if transitions are disabled
|
// Disable animation if transitions are disabled
|
||||||
@if $enable-transitions {
|
@if $enable-transitions {
|
||||||
@keyframes progress-bar-stripes {
|
@keyframes progress-bar-stripes {
|
||||||
from { background-position: $progress-height 0; }
|
0% { background-position-x: $progress-height; }
|
||||||
to { background-position: 0 0; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user