recordProgression(recordFrom) {
    let scrollPercent = this.getScrollPercent(recordFrom);
    if (scrollPercent > 1 && scrollPercent <= 100) {
      this.showProgressBar(true);
    } else {
      this.showProgressBar(false);
    }
    this.progressBar.style.width = scrollPercent + "%";
  }
/**
   * Use the distance traveled as progressBar width.
   * @param {string} recordFrom - An element to use for the calculation: `body` for the whole page, `container` for its container or an ID.
   */
Use the distance traveled as progressBar width.
@param {string} recordFrom - An element to use for the calculation: `body` for the whole page, `container` for its container or an ID.
Use the distance traveled as progressBar width . @param { string } recordFrom - An element to use for the calculation : ` body ` for the whole page ` container ` for its container or an ID .
recordProgression(recordFrom) {
    let scrollPercent = this.getScrollPercent(recordFrom);
    if (scrollPercent > 1 && scrollPercent <= 100) {
      this.showProgressBar(true);
    } else {
      this.showProgressBar(false);
    }
    this.progressBar.style.width = scrollPercent + "%";
  }
recordProgression ( recordFrom ) { let scrollPercent = this . getScrollPercent ( recordFrom ) ; if ( scrollPercent > 1 && scrollPercent <= 100 ) { this . showProgressBar ( true ) ; } else { this . showProgressBar ( false ) ; } this . progressBar . style . width = scrollPercent + "%" ; }
Use the distance traveled as progressBar width.
Use the distance traveled as progressBar width .