MSzturc / obsidian-advanced-slides

Create markdown-based reveal.js presentations in Obsidian
https://mszturc.github.io/obsidian-advanced-slides/
MIT License
939 stars 80 forks source link

Element animations don't work properly #262

Open jericjan opened 9 months ago

jericjan commented 9 months ago

Describe the bug When I add, an animation to an element or grid, it plays the animation once, but then never again. It also plays the animation even when it's not on screen yet.

Samples to Reproduce

<grid drag="50 100" drop="50 0" animate="slideRightIn"  >
![[IMAGE.jpg]]
</grid>
![[IMAGE.jpg]] <!-- element animate="slideRightIn"  -->

Expected behavior It should only play the animation when the element is in view, and then restart if the user navigates to that slide again.