AnimatedSwitcher

Used to switch between controls with an animation.

Inherits: LayoutControl

Properties

  • **content**: Control
  • The content to display. When it changes, this switcher will animate the transition from the old/previous content to the new one. Raises: ValueError if content is not visible.
  • **duration**: DurationValue (default: 1 second)
  • The duration of the transition from the old content to the new one.
  • **reverse_duration**: DurationValue (default: 1 second)
  • The duration of the transition from the new content to the old one.
  • **switch_in_curve**: AnimationCurve (default: LINEAR)
  • The animation curve to use when transitioning in a new content.
  • **switch_out_curve**: AnimationCurve (default: LINEAR)
  • The animation curve to use when transitioning an old content out.
  • **transition**: AnimatedSwitcherTransition (default: FADE)
  • An animation type to transition between new and old content.

    Examples

  • Animated switching between two containers with scale effect.
  • Animate Image switch.
  • Animate Image switch buffered.