mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-07-31 20:00:28 +02:00
progress bar width set via scale instead of width for perf
This commit is contained in:
@@ -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() +')';
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user