regebro / hovercraft

Make dynamic impressive presentations from text files!
https://hovercraft.readthedocs.org
MIT License
1.48k stars 209 forks source link

Make all substeps immediately visible in presenter console? #192

Open frederikmoellers opened 5 years ago

frederikmoellers commented 5 years ago

It's great that with the new impress.js version the substep plugin is supported.

I was wondering if it is a good idea to make (yet) invisible substeps (already) appear (slightly) visible in the presenter console, so that the presenter already sees the full slide with all bullets visible while the audience only sees those they should. So, for example, on a slide with 3 bullets, the audience would see:

And the speaker would (on their console) see:

The idea is that the speaker wants to see the whole slide to know what to say next while the audience should only see what the speaker has already said to not distract them.

I did something like this for my personal hovercraft template a while ago, so I could come up with a PR rather easily. It's mostly a CSS thing (plus maybe a bit of additional JavaScript to detect if the presentation is being shown in a frame on the presenter console). However, before creating a PR I wanted to ask if others consider this to be useful. I don't want to make a PR for something only I want :sweat_smile:

regebro commented 5 years ago

I think this should be possible with css, but I don't remember exactly how to make css that only applied to the previews right now, I have to dig into that.

frederikmoellers commented 5 years ago

You don't have to, I can look into this again. I was just curious whether others would be interested in this functionality.

I used to do it via JavaScript: https://github.com/frederikmoellers/hovercraft-template/blob/4666f6ba00f98ee70f8453f2125473c76e902f38/js/oneatatime.js#L72 I can port this into the hovercraft repo and create a PR. I will also have a look at whether we can do it without using JavaScript. Maybe impress.js already has something like that integrated. That script was for the old impress.js version which didn't have the substep plugin yet.

mohe2015 commented 5 years ago

If you do it, it would be great if you could do it in the impress.js repo as then everybody could profit from it.

yeyeto2788 commented 4 years ago

@regebro do you think we can have @frederikmoellers to make a PR with the changes proposed?

frederikmoellers commented 4 years ago

I can try to work something out and submit it so other people can test it. Then we can discuss if this solves a real issue or if it's just a niche solution for a corner case.

yeyeto2788 commented 4 years ago

@frederikmoellers that would be awesome. Let me know when you have it so I can test it out and I guess @regebro will be more than happy reviewing the PR.

yoosofan commented 4 years ago

This problem has not been solved yet and substeps does not work. Is there any progress?

frederikmoellers commented 4 years ago

Haven't had much spare time to dedicate to this. I will try to work something out but can't promise a date.