Sleeping 0.002s works great for shorter slides, but the transition time can become quite noticeable when there is more text – a larger code snippet or a "fancier" "diagram". This can get very annoying when you're moving back and forth between the slides and you're forced to wait quite a while.
Instead, I suggest an upper limit on how much a transition can take. If changing the slide would take more, the pause between printing each character is decreased. If not, the 0.002s pause is kept. I've set the upper slide transition limit to 0.3 because I'm a fan of faster transitions, but 0.4 and 0.5 also work fine.
If you're curious about when I'm encountering this problem, you can check this deck – it contains a few slides that take a bit too much for a 0.002s transition.
Sleeping 0.002s works great for shorter slides, but the transition time can become quite noticeable when there is more text – a larger code snippet or a "fancier" "diagram". This can get very annoying when you're moving back and forth between the slides and you're forced to wait quite a while.
Instead, I suggest an upper limit on how much a transition can take. If changing the slide would take more, the pause between printing each character is decreased. If not, the 0.002s pause is kept. I've set the upper slide transition limit to 0.3 because I'm a fan of faster transitions, but 0.4 and 0.5 also work fine.
If you're curious about when I'm encountering this problem, you can check this deck – it contains a few slides that take a bit too much for a 0.002s transition.