AnimateTransform

AnimateTransform animates a transformation attribute over time. You can control translation, scale, rotation and skew using the methods of this class. Here's a sample AnimateTransform object code which scales an element in 5 seconds.
$animateTransform = new AnimateTransform();
   $animateTransform->setInfiniteLoop();
   $animateTransform->duration = "5s";
   $animateTransform->begin = "0";
   $animateTransform->end = "5s";
   $animateTransform->scale(0.1, 1);
In the following example, a star shaped polygon scales:

Methods

public function rotate($fromAngle, $toAngle)
Rotates an element from the given angle to the target angle.
Parameters:
$fromAngle, $toAngle are the begining and final angles for the rotate animation.
public function scale($fromScale, $toScale)
Scales an element
Parameters:
$radius is the radius value of the circle
public function translate($fromPoints, $toPoints)
Moves an element from given points to the target points.
Parameters:
$fromPoints and $toPoints are initial and target points.
public function skew($direction, $from, $to)
Skews an element in a given direction and amount.

All rights reserved. See license