feat(lib): add loop option to next_slide and remove start/end_loop (#294)

* feat(lib): add `loop` option to `next_slide` and remove `start/end_loop`

* fix(docs): PR number
This commit is contained in:
Jérome Eertmans
2023-10-19 15:37:54 +02:00
committed by GitHub
parent 7928f6020c
commit 0322dae743
9 changed files with 78 additions and 117 deletions

View File

@ -26,12 +26,12 @@ class BasicSlide(Slide):
self.play(FadeIn(square))
self.next_slide()
self.next_slide(loop=True)
self.start_loop()
self.play(Rotate(square, +PI / 2))
self.play(Rotate(square, -PI / 2))
self.end_loop()
self.next_slide()
other_text = Text("Other text")
self.wipe([square, circle], [other_text])