Skip to content

Commit df61f9e

Browse files
committed
progress bar width set via scale instead of width for perf
1 parent 5e49cbd commit df61f9e

17 files changed

Lines changed: 11 additions & 45 deletions

File tree

css/reveal.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,12 @@ $controlsArrowAngleActive: 36deg;
567567
.reveal .progress span {
568568
display: block;
569569
height: 100%;
570-
width: 0px;
570+
width: 100%;
571571

572572
background-color: currentColor;
573-
transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
573+
transition: transform 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
574+
transform-origin: 0 0;
575+
transform: scaleX(0);
574576
}
575577

576578
/*********************************************

css/theme/template/theme.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,6 @@
299299
background: rgba(0,0,0,0.2);
300300
color: $linkColor;
301301
}
302-
.reveal .progress span {
303-
transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
304-
}
305302

306303
/*********************************************
307304
* PRINT BACKGROUND

dist/reveal.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/reveal.esm.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/reveal.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/theme/beige.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,6 @@
281281
background: rgba(0, 0, 0, 0.2);
282282
color: #8b743d; }
283283

284-
.reveal .progress span {
285-
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
286-
287284
/*********************************************
288285
* PRINT BACKGROUND
289286
*********************************************/

dist/theme/black.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,6 @@ section.has-light-background, section.has-light-background h1, section.has-light
277277
background: rgba(0, 0, 0, 0.2);
278278
color: #42affa; }
279279

280-
.reveal .progress span {
281-
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
282-
283280
/*********************************************
284281
* PRINT BACKGROUND
285282
*********************************************/

dist/theme/blood.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,6 @@
280280
background: rgba(0, 0, 0, 0.2);
281281
color: #a23; }
282282

283-
.reveal .progress span {
284-
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
285-
286283
/*********************************************
287284
* PRINT BACKGROUND
288285
*********************************************/

dist/theme/league.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,6 @@
283283
background: rgba(0, 0, 0, 0.2);
284284
color: #13DAEC; }
285285

286-
.reveal .progress span {
287-
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
288-
289286
/*********************************************
290287
* PRINT BACKGROUND
291288
*********************************************/

dist/theme/moon.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,6 @@ html * {
281281
background: rgba(0, 0, 0, 0.2);
282282
color: #268bd2; }
283283

284-
.reveal .progress span {
285-
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
286-
287284
/*********************************************
288285
* PRINT BACKGROUND
289286
*********************************************/

0 commit comments

Comments
 (0)