Scrollama Document

```{css, echo=FALSE} .level1 { min-height: 400px; border: 1px solid; margin-bottom: 4em; padding: 1em 2em 2em; } .is-active { background-color: yellow; } body { margin-bottom: 80vh; }

# Introduction



## Level-two heading

Level-two and below headings...

### Level-three

...are all contained in the same section.


# Text

Example text.


# Plots

You may include any number of plots in a section.

```r
par(mar = c(4, 4, .5, .1))
plot(cars, pch = 19)
plot(pressure, type = 'h')

Images

Local news reported a giant inflatable rubber duck rolling down the street of Des Moines, where this package is conceived.

The Rolling Duck

Setup

You should call rolldown::scrollama_setup() at the end of a document. Turn off the debug option to get rid of the horizontal line on the page, and you probably also want echo=FALSE on this code chunk:

rolldown::scrollama_setup(
  list(step = '.level1', offset = .2, debug = TRUE)
)


Try the rolldown package in your browser

Any scripts or data that you put into this service are public.

rolldown documentation built on July 15, 2019, 1:02 a.m.