use_progress_bar: Add an animated progress bar

View source: R/progress-bar.R

use_progress_barR Documentation

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"
)

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.

Value

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

Examples

xaringanExtra::use_progress_bar("red", "top", "0.25em")


xaringanExtra documentation built on July 16, 2022, 5:06 p.m.