progress bar width set via scale instead of width for perf
This commit is contained in:
parent
5e49cbdcf7
commit
df61f9e1fa
17 changed files with 11 additions and 45 deletions
|
@ -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() +')';
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue