diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-05-20 10:42:55 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-05-20 10:42:55 +0200 |
commit | df61f9e1fab4337e44e65fdd8a8488b91ac656de (patch) | |
tree | 16537c96ddb5d9596c91bd99f7d682b92f376e4a /js | |
parent | 5e49cbdcf70f7231e48a22a2ca7340506b762fe3 (diff) | |
download | fosdem-2021-minimalism-presentation-df61f9e1fab4337e44e65fdd8a8488b91ac656de.tar fosdem-2021-minimalism-presentation-df61f9e1fab4337e44e65fdd8a8488b91ac656de.tar.gz |
progress bar width set via scale instead of width for perf
Diffstat (limited to 'js')
-rw-r--r-- | js/controllers/progress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/controllers/progress.js b/js/controllers/progress.js index 90f7053..60db53e 100644 --- a/js/controllers/progress.js +++ b/js/controllers/progress.js @@ -55,7 +55,7 @@ export default class Progress { // Update progress if enabled if( this.Reveal.getConfig().progress && this.bar ) { - this.bar.style.width = this.Reveal.getProgress() * this.getMaxWidth() + 'px'; + this.bar.style.transform = 'scaleX('+ this.Reveal.getProgress() +')'; } |