Slide
Slide transition using transform translations.
The outgoing scene slides out while the incoming scene slides in from the opposite direction. Directions specify where the outgoing scene moves to: - "left": Outgoing slides left, incoming slides from right - "right": Outgoing slides right, incoming slides from left - "up": Outgoing slides up, incoming slides from bottom - "down": Outgoing slides down, incoming slides from top
Constructor
Slide(
direction: SlideDirection = 'left',
duration: float = 0.5,
easing: Callable[[float], float] = <function linear at 0x107ad0cc0>,
overlapping: bool = False
) -> None
Initialize a slide transition.
Parameters
-
direction - Direction the outgoing scene moves
-
duration - Duration of the transition
-
easing - Easing function applied to the slide movement
-
overlapping - If True, scenes continue animating during transition
Methods
composite
composite(
scene_out: 'VScene',
scene_in: 'VScene',
progress: float,
time_out: float,
time_in: float,
ctx: RenderContext
) -> Drawing
Composite scenes with sliding movement.
Parameters
-
scene_out - The outgoing scene
-
scene_in - The incoming scene
-
progress - Progress through transition (0.0-1.0), already eased
-
time_out - Current time within outgoing scene (0.0-1.0)
-
time_in - Current time within incoming scene (0.0-1.0)
-
ctx - Render context
Returns
Drawing with sliding scenes