Skip to content

Animation

An Animation lets a stack move continuously, e.g. to draw attention to a new element or to show that something is loading, or animates changes of its style.

VStack(Text("hello world")).
	BackgroundColor(ColorCardBody).
	Animation(AnimatePulse).
	Padding(Padding{}.All(L16))
ConstantEffect
AnimateNoneNo animation, the default.
AnimateTransitionAnimates changes of properties like colors, opacity or the transformation.
AnimatePulseFades the component in and out.
AnimateBounceLets the component bounce up and down.
AnimatePingScales the component up while fading it out, like a radar ping.
AnimateSpinRotates the component continuously.

Animation has no methods.

Related