diff --git a/doc/cookbook/animations.xml b/doc/cookbook/animations.xml index ffcaa649d..6c0a674ea 100644 --- a/doc/cookbook/animations.xml +++ b/doc/cookbook/animations.xml @@ -2703,4 +2703,136 @@ timeline_completed_cb (ClutterTimeline *timeline, +
+ Animated scaling + +
+ Problem + + You want to animate scaling of an actor. +
+ +
+ Solution + + Animate the actor's scale-x and + scale-y properties to change the scaling on + the x and y axes respectively. + + For example, to animate an actor to twice its initial scale + with implicit animations: + + + + + + + + Alternatively, ClutterAnimator or + ClutterState can be used to animate an actor's scale + properties. See this + example for details. +
+ +
+ Discussion + + + +
+ Setting the scale center + + +
+ +
+ +
+ Full examples + + + Animated scaling of an actor using each of the + scale gravities. Press any key to start the animation. + + + a code sample should be here... but isn't + + + +
+ +
+