-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] HTML animations show final frame when executed for the second time #511
Comments
Hi @svandenhaute, thanks for posting your issue! I guess you ticked the wrong issue type here
as mentioned that the bug occurs when converting to HTML (and playing slides)? I could reproduce your issue, and there is nothing I can really do about this, as this is related to how RevealJS handles playing videos. The best you can do is repost this issue in https://github.com/hakimel/reveal.js and see if they can do something. Note that the bug doesn't seem to occur when setting I am closing this now, but feel free to re-open if necessary. |
Thanks for the quick reply. I guess I understand that this has got to do more with RevealJS rather than manim-slides, but it does feel like a dealbreaker for the entire HTML exporting functionality of manim-slides. I do see there's not much you can do about this. With |
From experience, you don't go often backward with slides and, when you do, it feels more natural to expect a small flash in the slides, than going forward, especially as you usually don't have a continuum between the start of slide I am not aware of any other trick when converting, however, keep in mind that:
|
I am experiencing the initial black screen "flash" even when moving forward through the slides for the first time though... Any ideas why that might be the case? Also, for completeness sake, I'll also mention that PPTX seemd to suffer from the same bug. |
Unfortunately, I cannot reproduce (I am on a rather powerful machine, so that could explain). I will release a new version with #508, as this contains an improvement that could fix your issue. |
That somehow fixes it and makes it butter-smooth! Thanks for the help. In your experience, how "scalable" is the one-file HTML? Will it somehow start to get laggy for very large presentations? I'm normally planning to present on an M4 Macbook Pro so performance should be top-notch. |
I don't know, I have used that feature very little :-) |
Terms
Describe the issue
I have rendered it using
manim-slides render scene.py CreateCircle
, after which I convert to HTML usingmanim-slides convert CreateCircle slide.html
. I can openslide.html
just fine in any browser, and play the animation for the first time just fine, with a quality and smoothness that is satisfactory. However, when I use the arrows to go backwards through the slides and then move forward again, each animation I think starts from the last frame in the corresponding mp4, before realizing it should reset to the start and play. This makes the final state of the animation appear and disappear very quickly for each animation.It seems like a caching issue because it does not happen when I first go through the slides.
Slides were created on the following machine:
The issue is observed on Fedora 40 (Linux and Thorium browsers) as well as Windows 11 (Edge browser).
Command
manim-slides convert CreateCircle slide.html
Issue Type
Visual bug when presenting (
manim-slides present
)Python version
Python 3.10.14
Python environment
What is your platform?
Linux, Windows
Other platform
No response
Manim Slides Python code
Relevant log output
No response
Screenshots
No response
Additional information
No response
Recommended fix or suggestions
No response
The text was updated successfully, but these errors were encountered: