Seq

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

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

Bases: Lag

Play the block’s animations one after another.

Each animation starts as the previous one finishes, so the block lasts as long as all of them put together. This is what statements at the top level of a script already do; reach for Seq when you need to give a run of animations a combined runtime, or to sequence inside a Sync.

Parameters:
  • runtime (float | None) – Passed to AnimationContext .

  • **kwargs – Passed to Lag with lag_ratio=1.

Examples

with Seq(runtime=2):  # three moves squeezed into two seconds
    square.move(RIGHT)
    square.move(UP)
    square.move(LEFT)

Methods

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