0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +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:
Martijn Cuppens 2019-05-02 10:03:28 +02:00 committed by XhmikosR
parent 336778f463
commit b327c34ce3

View File

@ -1,8 +1,7 @@
// Disable animation if transitions are disabled
@if $enable-transitions {
@keyframes progress-bar-stripes {
from { background-position: $progress-height 0; }
to { background-position: 0 0; }
0% { background-position-x: $progress-height; }
}
}