The following video shows you how to animate your slides:

One more case that's not mentioned in the video is when you'd like multiple slide elements to appear together at the same time. For example, let's say you'd like an image and code chunk to come in together, then another image and code chunk to come in together after that. You can do something like this:

Part 1:

![mtcars-scatterplot-formula.png](http://assets.datacamp.com/production/repositories/3930/datasets/d5ee1ee5041689dc8cd85ab5a76bef1828ae655a/mtcars-scatterplot-formula.png){{1}}

```r
plot(mtcars$hp, mtcars$mpg)
```{{1}}

Part 2:

![mtcars-scatterplot.png](http://assets.datacamp.com/production/repositories/3930/datasets/595b1e3003d9a20aa9919c92d659042f3bc289c8/mtcars-scatterplot.png){{2}}

```r
plot(mpg ~ hp, data = mtcars)
```{{2}}

Both elements in part 1 would appear together, followed by both elements in part 2.

If you have questions, let us know!

Did this answer your question?