Skip to main content

Creating Custom Animations

Extend Animation class:
from manimvtk import *

class CustomAnimation(Animation):
    def interpolate_mobject(self, alpha):
        # alpha goes from 0 to 1
        # Modify self.mobject based on alpha
        self.mobject.scale(1 + alpha)

See Also

Animations Guide

Animation concepts