SlideShow

Qualified name: algan.animation\_timeline.animation\_contexts.SlideShow

class SlideShow(runtime=None, **kwargs)[source]

Bases: Seq

Present Mobs one at a time, pausing on each, and clear up at the end.

A Seq with presentation manners: every Mob spawned inside gets a one-second pause after it appears, so the viewer has time to read it, and when the block ends everything spawned inside is despawned together. Good for stepping through a list of points.

Examples

with SlideShow():
    Tex("First point").spawn()
    Tex("Second point").move_to(DOWN).spawn()
# both fade out here

Methods

on_create_extra

Pause for a second after a Mob spawns, so it can be read.

on_destroy_extra

Pause for a second after a Mob despawns.

Attributes

animation_manager

child_contexts

combine_easing

composed_easing

current_time

Where the authoring cursor sits within this context, in seconds.

easing

end_time

The furthest time anything recorded in this context reaches, in seconds.

equalize_runtimes

finished

kwargs

lag_ratio

new_animation

new_mobs

prev_context

priority_level

record_attr_modifications

record_funcs

runtime

runtime_per_part

spawn_at_end

Parameters:
  • runtime (float | None)

  • kwargs (Any)

on_create_extra(animatable)[source]

Pause for a second after a Mob spawns, so it can be read.

Parameters:

animatable – The Mob that was just spawned.

on_destroy_extra(animatable)[source]

Pause for a second after a Mob despawns.

Parameters:

animatable – The Mob that was just despawned.