[ Version ( deprecated = true , deprecated_since = "1.12" , since = "1.0" ) ]
public class Animation : Object, Scriptable
Warning: Animation is deprecated since 1.12.
Animation is an object providing simple, implicit animations for Objects.
Use the implicit animation on Actor
Animation instances will bind one or more Object properties belonging to a Object to a Interval, and will then use a Alpha to interpolate the property between the initial and final values of the interval.
A Animation will emit the completed
signal when the Timeline used by the animation is completed; unlike
Timeline, though, the
completed will not be emitted if
loop is set to
true - that is, a looping animation never
If your animation depends on user control you can force its completion using completed.
Animations are distinguished from Behaviour s because the former can only control Object properties of a single Object instance, while the latter can control multiple properties using accessor functions inside the Behaviour `alpha_notify` virtual function, and can control multiple Actors as well.
For convenience, it is possible to use the animate function call which will take care of setting up and tearing down a Animation instance and animate an actor between its current state and the specified final state.
Animation is available since Clutter 1.0.
Animation has been deprecated in Clutter 1.12. You should use the [implicit animation API][clutter-actor-animation] available inside Actor instead. If you require to define explicit transitions for one or more properties in order to reuse them, see Transition instead.
When defining a Animation inside a ClutterScript file or string the mode can be defined either using the AnimationMode enumeration values through their "nick" (the short string used inside EnumValue), their numeric id, or using the following strings:
- easeInQuad, easeOutQuad, easeInOutQuad - easeInCubic, easeOutCubic, easeInOutCubic - easeInQuart, easeOutQuart, easeInOutQuart - easeInQuint, easeOutQuint, easeInOutQuint - easeInSine, easeOutSine, easeInOutSine - easeInExpo, easeOutExpo, easeInOutExpo - easeInCirc, easeOutCirc, easeInOutCirc - easeInElastic, easeOutElastic, easeInOutElastic - easeInBack, easeOutBack, easeInOutBack - easeInBounce, easeOutBounce, easeInOutBounce