Skip to content

Commit

Permalink
hakimel#3678 : Made the progress bar use width instead of scaleX
Browse files Browse the repository at this point in the history
  • Loading branch information
Saucistophe committed Sep 9, 2024
1 parent 4725350 commit 1374762
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 13 deletions.
6 changes: 2 additions & 4 deletions css/reveal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -585,12 +585,10 @@ $controlsArrowAngleActive: 36deg;
.reveal .progress span {
display: block;
height: 100%;
width: 100%;
width: 0%;

background-color: currentColor;
transition: transform 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
transform-origin: 0 0;
transform: scaleX(0);
transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
}

/*********************************************
Expand Down
2 changes: 1 addition & 1 deletion dist/reveal.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions js/controllers/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ export default class Progress {
scale = 0;
}

this.bar.style.transform = 'scaleX('+ scale +')';

this.bar.style.width = `${scale * 100}vw`;
}

}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1374762

Please sign in to comment.