Skip to content

Auto animations not working when text is bulleted #1823

@kwakuduahc1

Description

@kwakuduahc1

I observed a rather weird behavior using auto-animations with quarto.

Given this yaml headers

``` 
title: "revealjs animation"
author: "kwakuduahc1"
format: 
  revealjs: 
     incremental: true 
     code-fold: show
     show-slide-number: all    
 ```

This works as expected. The code block is preserved on the same page and the animation effects work correctly.

## Variables (refresher) {#vects auto-animate=true}
The quick brown fox

```{r}
#| echo: true
#| code-line-numbers: true
ctry <- "Ghana"
```

## Variables (refresher) {#vects auto-animate=true}
The quick brown fox

```{r}
#| echo: true
#| code-line-numbers: "2"
#| output-location: fragment
ctry <- "Ghana"
ctry
```

But this does not work. On animation, the bulleted line disappears before the animation completes.

## Variables (refresher) {#vects auto-animate=true}
1. The quick brown fox

```{r}
#| echo: true
#| code-line-numbers: true
ctry <- "Ghana"
```

## Variables (refresher) {#vects auto-animate=true}
1. The quick brown fox

```{r}
#| echo: true
#| code-line-numbers: "2"
#| output-location: fragment
ctry <- "Ghana"
ctry
```

An interim solution is to surround the second code block with fragment but that means pressing the next button twice before the desired animation is shown.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrevealjsIssues with the revealjs format

Type

No type

Projects

Status

Quarto related

Relationships

None yet

Development

No branches or pull requests

Issue actions