EmilHvitfeldt / quarto-roughnotation

An extension that uses the roughnotation javascript library to add animated annotations to revealjs documents.
https://emilhvitfeldt.github.io/quarto-roughnotation/
63 stars 3 forks source link

feat: auto start rough notation animation on slide change #5

Closed mcanouil closed 2 years ago

mcanouil commented 2 years ago

This PR adds an event listener to draw the rough notation on slide changes (see https://revealjs.com/events/). (It keeps the key binding by naming the function and reusing it for both events, although with the auto start feature, the key binding is useless.)

Fixes #2

EmilHvitfeldt commented 2 years ago

I would use something like slide states instead of slidechanged, this way the user can do something like this to selectively apply it to slides


## No auto

## Yes auto {.rn-auto}
mcanouil commented 2 years ago

I see, this could also be a global yaml option with the implementation you suggest.

mcanouil commented 2 years ago

I am closing this PR 😉

ChoCho66 commented 1 year ago

I want to ask a stupid question. How to use this slidechanged function? Or how to use this "auto start rough notation"?