diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2019-05-02 11:03:28 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-05-02 11:03:28 +0300 |
commit | b327c34ce3d452f3e64b2f619063f4f883f389e3 (patch) | |
tree | d1cd8f597c577e3acc114e0f4b78184352fa6a8c /scss | |
parent | 336778f4639f6badfd0410c08933e59f25b8b74c (diff) |
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`
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_progress.scss | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scss/_progress.scss b/scss/_progress.scss index 391081aa08..f9700240ae 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; } } } |