exports gif
Have you considered taking GIF screenshots of whatever animation is displayed on screen?
Free educational physics simulator: KDE Step
https://edu.kde.org/step/
https://userbase.kde.org/Step
Source code: https://invent.kde.org/education/step