Support Fluxion Engine
If you find this project useful, please consider supporting its development.
Support ProjectComplete reference for all animation classes in Fluxion.
Animations are the core of Fluxion. They interpolate between two states of a mobject over time, creating smooth transitions.
Draws a mobject onto the screen.
Create(mobject, **kwargs)Example:
class CreateExample(Scene):
def construct(self):
circle = Circle()
self.play(Create(circle))Fade mobjects in or out.
FadeIn(mobject, **kwargs)
FadeOut(mobject, **kwargs)Animates text being written.
Write(text_mobject, **kwargs)Morphs one mobject into another.
Transform(mobject, target_mobject, **kwargs)Replaces one mobject with another.
ReplacementTransform(mobject, target_mobject, **kwargs)Moves a mobject to a target position.
mobject.generate_target()
mobject.target.shift(RIGHT * 2)
self.play(MoveToTarget(mobject))Shifts a mobject by a vector.
mobject.animate.shift(UP * 2)Rotates a mobject.
Rotate(mobject, angle, axis=OUT, **kwargs)Continuously rotates a mobject.
Rotating(mobject, radians=TAU, **kwargs)Grows a mobject from its center.
GrowFromCenter(mobject, **kwargs)Grows a mobject from an edge.
GrowFromEdge(mobject, edge, **kwargs)Temporarily highlights a mobject.
Indicate(mobject, **kwargs)Creates a flash effect.
Flash(point, **kwargs)Draws a shape around a mobject.
Circumscribe(mobject, **kwargs)Groups multiple animations.
AnimationGroup(*animations, **kwargs)Plays animations in succession.
Succession(*animations, **kwargs)Starts animations with a lag.
LaggedStart(*animations, lag_ratio=0.5, **kwargs)Control animation timing:
linear - Constant speedsmooth - Ease in and outrush_into - Acceleraterush_from - Deceleratethere_and_back - Go and returnself.play(animation, rate_func=smooth)Create your own animations:
class CustomAnimation(Animation):
def interpolate_mobject(self, alpha):
# alpha goes from 0 to 1
self.mobject.set_opacity(alpha)If you find this project useful, please consider supporting its development.
Support Project