aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2019-05-02 10:03:28 +0200
committerXhmikosR <[email protected]>2019-05-02 11:03:28 +0300
commitb327c34ce3d452f3e64b2f619063f4f883f389e3 (patch)
treed1cd8f597c577e3acc114e0f4b78184352fa6a8c
parent336778f4639f6badfd0410c08933e59f25b8b74c (diff)
downloadbootstrap-b327c34ce3d452f3e64b2f619063f4f883f389e3.tar.xz
bootstrap-b327c34ce3d452f3e64b2f619063f4f883f389e3.zip
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`
-rw-r--r--scss/_progress.scss3
1 files changed, 1 insertions, 2 deletions
diff --git a/scss/_progress.scss b/scss/_progress.scss
index 391081aa0..f9700240a 100644
--- a/scss/_progress.scss
+++ b/scss/_progress.scss
@@ -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; }
}
}