Does an external package exist that can be used to export Touying or Polylux presentations into an HTML document that supports export into more complex animations (fade, object motion, etc)?
There’s of course the touying python package, which I use frequently, but the only additional features it seems to support is that GIFs can play, which I believe is already the case for SVG exports directly Typst.
I want to know if a project exists already, because if not I will be making one. It will not be difficult to implement the following:
Basic features
- Set global/individual slide transition animation. In the typst document, metadata can store the selection. The package can query for it through the CLI and apply the right CSS animation when showing/hiding pages in the HTML export.
- Animate content to move across a page. Typst adds a
data-field to content in SVG exports that has labels. This can be used to identify reused content from one subslide to the next, and can be used to apply a CSS animation to move that content from its position on one slide to the next slide. - Video file support. In normal Typst, a placeholder of the same size as a video file can show where it would appear. In the export package, the actual video file can be inserted, with ways to control when to start/stop the video.
- Optional slide timers. Set the length of time a slide will be shown. Can be used in combination with some kind of screen recording to export slides as a video.
Possible advanced features
- Local server feature that allows for GUI editing of animation paths. A special editor mode of the package could be used to insert and edit more complex animations via GUI.
- Advanced transition support. Rotate, translate, skew, or even things like Manim’s
Transform.
I believe such a package built this way could be agnostic to the slide package used in Typst. Does something like this exist? If not, anyone want to collaborate on this? If not I’ll figure it out.