Learn R Programming

xaringanExtra (version 0.8.0)

use_progress_bar: Add an animated progress bar

Description

Adds an animated progress bar to all slides.

Usage

use_progress_bar(
  color = "red",
  location = c("top", "bottom"),
  height = "0.25em"
)

Value

An htmltools::tagList() with the HTML dependencies required for progress bar.

Arguments

color

A valid CSS color to be used as the color of the progress bar.

location

One of "top" or "bottom".

height

A valid CSS unit specifying the height of the progress bar.

Examples

Run this code
xaringanExtra::use_progress_bar("red", "top", "0.25em")

Run the code above in your browser using DataLab