feat(lib): add auto_next option (#304)

* feat(lib): add `auto_next` option

As suggested in #302, you can now automatically skip a slide. It works both with `present` and `convert --to=html`!

Closes #302

* chore(ci): add trigger on push on main
This commit is contained in:
Jérome Eertmans
2023-10-30 10:12:59 +01:00
committed by GitHub
parent 2853ed08e1
commit 6c52906037
14 changed files with 149 additions and 9 deletions

View File

@ -185,12 +185,11 @@ class Example(Slide):
self.play(Transform(step, step_5))
self.play(Transform(code, code_step_5))
self.next_slide()
self.next_slide(auto_next=True)
self.play(Transform(step, step_6))
self.play(Transform(code, code_step_6))
self.play(code.animate.shift(UP), FadeIn(code_step_7), FadeIn(or_text))
self.next_slide()
watch_text = Text("Watch result on next slides!").shift(2 * DOWN).scale(0.5)