-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
dat-autoslide just run once. #3123
Comments
Yes, I'm having this problem as well. Also the autoslide doesn't seem to work on android Chrome. |
I'm having the same issue. I've confirmed in Chrome and Firefox. Whenever a slideshow loops, every slide loads in its final state. That means if I have multiple fragments, they are all loaded. If I hide previous fragments, then only the final fragment is shown. The only place I could find this issue mentioned previously was back in 2013, and it was reportedly fixed. #473 Maybe it's unrelated, or maybe the same bug got reintroduced. |
I'm not really qualified to contribute to this code, and I think there might be a disagreement over the intention, but I think I have fixed it for myself. I looked at how my slides were rendering, as well as the code section mentioned above, and found this section. Starting at line 1597 in js/reveal.js
I can see that all fragments in prior slides remain visible. I found the equivalent section in dist/reveal.js, it looks like this:
Remove where the visible class is being added, and add the visible class to the section where classes are removed, and it looks like this:
I absolutely believe that an option for this should be added to the code, otherwise there's no point in having a loop option for the slideshow if the slideshow is fundamentally incapable of playing correctly after the first time. reveal.js is amazing and I wish I knew enough to contribute. I'm grateful for the effort put into development. |
I've fixed the inconsistent behavior with fragment visibility in looping presentations. Fragment visibility should now behave the same when looping as it does for other slide navigation. If you loop from end to beginning, all fragments are hidden/reset. If you loop from beginning to end, all fragments are visible when stepping backwards. Tested in FF/Chrome and with the sample of code in the original issue report. Let me know if you still notice any weirdness! |
* hakimel/master: (1422 commits) tweak slides mention fix issues with overflowing fit-text when exporting to pdf hakimel#3191 hakimel#3120 Fix typo in plugin.js notes plugin only listens for same-origin postmessages to prevent xss new attempt at speaker view xss fix add support for 'data-background-gradient' hakimel#2510 fix issue where auto-animate did not work when jumping three or more slides (i.e. longer than the view distance) made data-background attribute work with .webp hakimel#3200 fix: truncated long r-fit-text on pdf update link fix issue with hakimel#3182 when slide numbers are disabled fix inconsistent fragment visibility in looping presentations hakimel#3123 fix: pdf page numbering for fragment group always use css transforms for presentation scaling (zoom has too many quirks even if it is slightly sharper on ldpi displays) update lock file 4.3.1 notes plugin allows messsages from current/upcoming slide windows fix hakimel#3154 fix vertical slide link in demo hakimel#3155 dont run full build + tests for package task hakimel#3156 ...
I have two fragments with auto slide attributes. it works great when I step forward once but when I slide backward It will work manually after that no difference between I step backward or forward. It is my code:
The text was updated successfully, but these errors were encountered: