J. Nicholson
J. Nicholson

Reputation: 1

R package revealjs can't change transition

I'm trying to create a presentation in RStudio using Rmarkdown and the revealjs package. I can't seem to change the transition even though I change the yaml to include a different transition as noted in the RStudio documentation on revealjs and the github documentation on revealjs. I'm running Microsoft R Open 3.3.3, RStudio version 1.0.143, Rmarkdown 1.3, and revealjs 0.9. Below is some simple code. I have tried rendering the presentation with both the knit button and in the console. The transition is stuck on the default box transition.

---
title: "Test Presentation"
output: 
  revealjs::revealjs_presentation:
  transition: fade
---

## Slide with Bullets

- Bullet 1
- Bullet 2
- Bullet 3

## Slide with R Code and Output

```{r}
summary(cars)
```

## Slide with Plot

```{r, echo=FALSE}
plot(cars)
```

Upvotes: 0

Views: 402

Answers (1)

Bluesfannoz
Bluesfannoz

Reputation: 11

Indenting the 'transition: fade' worked for me.

---
title: "Test Presentation"
output: 
  revealjs::revealjs_presentation:
    transition: fade
---

Upvotes: 1

Related Questions