R/generate_scroll_doc.R
generate_scroll_doc.Rd
Pass a tibble with three columns to the inputs
argument in
generate_scroll_doc()
: content
, position
, and imgurl
. The function then returns
a HTML document that will be saved in the location specified with path
. The tibble
with parameters can be generated with parse_md()
and purrr::bind_rows()
(see
examples).
generate_scroll_doc(path, inputs, custom_css = NULL)
path | character string. Specify the path for the HTML file to be written. |
---|---|
inputs | A tibble or data frame with three columns:
|
custom_css | A character vector of length 1 that holds the CSS code for the parallax
document. You may use a combination of |