Skip to main content

Animation Categories

Creation

Create, Write, FadeIn, GrowFromCenter

Transform

Transform, ReplacementTransform, MoveToTarget

Movement

Shift, Rotate, Scale

Indication

Indicate, Flash, Wiggle, Circumscribe

Playing Animations

self.play(AnimationClass(mobject, **kwargs))
Common parameters:
  • run_time (float): Duration in seconds
  • rate_func (function): Timing function
  • lag_ratio (float): For grouped animations

The .animate Syntax

self.play(mobject.animate.method())
Example:
self.play(circle.animate.shift(RIGHT).scale(2).set_color(RED))

See Also

Animations Guide

Conceptual guide

Examples

Animation examples