powered by
Include the Scrollama JS library in the HTML output from R Markdown.
scrollama(...)scrollama_sidebar(..., template = pkg_resource("html", "scrollama-side.html"))scrollama_setup(options = list(step = ".section, img, video, embed", offset = 0.5))
scrollama_sidebar(..., template = pkg_resource("html", "scrollama-side.html"))
scrollama_setup(options = list(step = ".section, img, video, embed", offset = 0.5))
scrollama() and scrollama_sidebar() return R Markdown output formats; scrollama_setup() is a helper function to return the JavaScript code for initializing Scrollama.
scrollama()
scrollama_sidebar()
scrollama_setup()
Arguments to be passed to bookdown::html_document2().
bookdown::html_document2()
A list of initialization options for Scrollama.
The Scrollama library: https://github.com/russellgoldenberg/scrollama.
rolldown::scrollama_setup(list(step = ".level1", offset = 0.2))
Run the code above in your browser using DataLab