gnab / remark

A simple, in-browser, markdown-driven slideshow tool.
http://remarkjs.com
MIT License
12.7k stars 856 forks source link

Hook on "next slide" event to add custom animations #672

Open bakaburg1 opened 2 years ago

bakaburg1 commented 2 years ago

Hello!

I'd like to add some simple animation, that is showing an element at the presenter's input.

I know you provide -- or layout, but these cannot be used if the element to animate is inside another one.

I think an easy workaround would just be to use some js to change the class of the element, but for this I need to hook on the event triggered when slide change is attempted. What is this event called? where is it attached?

Thanks!