Transition#

A set of classes for implementing transitions between application screens.

New in version 1.0.0.

Changing transitions#

You have multiple transitions available by default, such as:

  • MDFadeSlideTransition

    state one: the new screen closes the previous screen by lifting from the bottom of the screen and changing from transparent to non-transparent;

    state two: the current screen goes down to the bottom of the screen, passing from a non-transparent state to a transparent one, thus opening the previous screen;

Note

You cannot control the direction of a slide using the direction attribute.

https://github.com/HeaTTheatR/KivyMD-data/raw/master/gallery/kivymddoc/transition-md-fade-slide-transition.gif

API - kivymd.uix.transition.transition#

class kivymd.uix.transition.transition.MDTransitionBase#

TransitionBase is used to animate 2 screens within the ScreenManager. This class acts as a base for other implementations like the SlideTransition and SwapTransition.

Events:
on_progress: Transition object, progression float

Fired during the animation of the transition.

on_complete: Transition object

Fired when the transition is finished.

hero_widget#
hero_from_widget#
start(self, instance_screen_manager: MDScreenManager)#

(internal) Starts the transition. This is automatically called by the ScreenManager.

animated_hero_in(self)#
animated_hero_out(self)#
on_complete(self)#
class kivymd.uix.transition.transition.MDSwapTransition(**kwargs)#

Swap transition that looks like iOS transition when a new window appears on the screen.

class kivymd.uix.transition.transition.MDSlideTransition#

Slide Transition, can be used to show a new screen from any direction: left, right, up or down.

class kivymd.uix.transition.transition.MDFadeSlideTransition#

Slide Transition, can be used to show a new screen from any direction: left, right, up or down.

start(self, instance_screen_manager: MDScreenManager)#

(internal) Starts the transition. This is automatically called by the ScreenManager.

on_progress(self, progression: float)#