AnimatedItem.animation.on_finish method

on_finish(self, callback: Callable[[], None]) -> None:

Creates a handler that triggers when the current animation completes.

Note: This handler is disposed when a new animation is played. Looping animations do not complete.

Parameters

  • callback: Callable[[], None]

    function to call when animation completes.