Rotate can be added to an object to make it rotate without any user input or actions. This can be used to create rotating dial needles, background animations, etc.:
This function might affect the operation of other functions. This tool does not prevent combining functions, but it is necessary to test and verify each combination. In general, use this function only with transitions and functions that do not move, rotate, or scale the same object.
The rotate attributes are:
x: The horizontal coordinate of the point to rotate around. The default is zero.
y: This vertical coordinate of the point to rotate around. The default is zero.
start: The angle to start rotating from. Angle zero is the 12 o'clock position. This can be used to create a continuously updated dial needle with the current start angle aligned with the previous end angle. The default is zero.
span: The number of degrees to rotate the object. A positive value rotates it clockwise. A negative value rotates it counterclockwise. To rotate the object more than full circle, make this value larger than 360 or smaller than -360. The default is 360 (full circle, clockwise).
step: The number of degrees the object rotates in each step. This determines the rotation speed. This must be a positive number. The default is 2.
shake_frequency: After the object reaches its destination, shake_frequency determines how often the object shakes as a visual effect. Valid values range from 0 (never shake) to 1 (always shake). The default is 1.
shake_span: The maximum rotation in degrees generated by the shake. The default is 10.
shake_snap: If the object should snap to fixed positions while shaking, this determines the intervals in degrees at which to snap. This must be a positive value greater than zero. If this attribute is omitted or equal to zero, then the object shakes smoothly without snapping. The default is zero (no snapping).