From the Animation section of the list of actions available along the left column of the Action Editor, you can add any of the following six actions. Click an action for instructions on how to add it to an action sequence.
Action | Property |
---|---|
Flex Move | Moves the widget from its original position. |
Flex Scale | Resizes a widget. |
Flex Layout | Moves, scales, and rotates a widget with a single action along an X and Y axis (two dimensional). |
Transform | Moves, scales, and rotates a widget with a single action along an X, Y, and Z axis (three dimensional). |
Rotate | Rotates a widget along an X and Y axis (two dimensional). |
Rotate 3D | Rotates a widget along an X, Y, and Z axis (three dimensional). |
Set Style | Changes the background color of a widget. |
To move a widget, do the following:
Property | Description | Examples |
---|---|---|
Animation ID | The name or ID of the animation. You can use the default ID, or you can enter your own ID, ensuring that it has no spaces, and does not duplicate the name of an existing animation. | Move_left |
Left |
Specifies the distance a widget moves to the left from its original position. |
-20 px, 100 dp, 15% |
Right |
Specifies the distance a widget moves to the right from its original position. |
10 px, 175 dp, 25% |
Top |
Specifies the distance a widget moves to the top from its original position. |
-15 px, 200 dp, 7% |
Bottom |
Specifies the distance a widget moves to the bottom from its original position. |
23 px, 225dp, 6% |
Center X |
Specifies the distance a widget's center moves horizontally from its original position. |
-21 px, 263 dp, 11% |
Center Y | Specifies the distance a widget's center moves vertically from its original position. | -15 px, 200 dp, 7% |
Time |
Specifies the number of milliseconds (ms) in which an animation is completed. |
1000 |
Time Function |
The following time functions are available:
|
|
Delay | Specifies the number of milliseconds (ms) to wait before starting an animation. | 2000 |
Repeat | Specifies the number of times an action is repeated. To run the action indefinitely, select the Infinite check box. | 5 |
Direction |
Specifies whether the direction of the animation goes in one direction or alternates. When the animation alternates, the animated widget moves toward the end position specified in the positional properties, and then returns to its starting point at the same rate. The following options are available:
|
None, Alternate |
Start |
Specifies how an animation action starts. The following options are available:
Note: With Animation and After Animation properties are ignored if only single action is available in the Action Sequence pane. |
Immediately |
Inherit |
The following options are available:
|
Both |
Note: For the following properties Left, Right, Top, Bottom, Center X and Center Y, you can specify the values in Device Independent Pixels (dp), pixels (px), and percentage (%). You can also specify negative values for these properties.
To scale a widget, do the following:
Property | Description | Examples |
---|---|---|
Animation ID | The name or ID of the animation. You can use the default ID, or you can enter your own ID, ensuring that it has no spaces, and does not duplicate the name of an existing animation. | Scale_widget |
Width |
Specifies the width of a widget. |
100 px |
Height |
Specifies the height of a widget. |
250 dp |
Min Width |
Specifies the minimum width of a widget. |
20% |
Min Height |
Specifies the minimum height of a widget. |
15% |
Max Width |
Specifies the maximum width of a widget. |
540px |
Max Height | Specifies the maximum width of a widget. | 300px |
Anchor X |
Specifies the horizontal anchor point from where widget rotation begins. |
15% |
Anchor Y |
Specifies the vertical anchor point from where widget rotation begins. |
25% |
Time |
Specifies the number of milliseconds (ms) in which an animation is completed. |
1000 |
Time Function |
The following time functions are available:
|
|
Delay | Specifies the number of milliseconds (ms) to wait before starting an animation. | 2000 |
Repeat | Specifies the number of times an action is repeated. To run the action indefinitely, select the Infinite check box. | 5 |
Direction |
Specifies whether the direction of the animation goes in one direction or alternates. When the animation alternates, the animated widget moves toward the end position specified in the positional properties, and then returns to its starting point at the same rate. The following options are available:
|
None, Alternate |
Start |
Specifies how an animation action starts. The following options are available:
Note: With Animation and After Animation properties are ignored if only a single action is available in the Action Sequence pane. |
Immediately |
Inherit |
The following options are available:
|
Both |
Note: For the following properties Width, Height, Min Width, Min Height, Max Width, Max Height, you can specify the values in Device Independent Pixels (dp), pixels (px), and percentage (%). You can also specify negative values for these properties.
Using this single action, you can move, scale, and rotate a widget in two dimensions.
To use the Flex Layout animation, do the following:
Property | Description | Examples |
---|---|---|
Animation ID | The name or ID of the animation. You can use the default ID, or you can enter your own ID, ensuring that it has no spaces, and does not duplicate the name of an existing animation. | FlexLayoutAnimation |
Left |
Specifies by how much a widget moves to the left from its original position. |
-20 px, 100 dp, 15% |
Right |
Specifies by how much a widget moves to the right from its original position. |
10 px, 175 dp, 25% |
Top |
Specifies by how much a widget moves to the top from its original position. |
-15 px, 200 dp, 7% |
Bottom |
Specifies by how much a widget moves to the bottom from its original position. |
23 px, 225dp, 6% |
Center X |
Specifies by how much a widget's center moves horizontally from its original position. |
-21 px, 263 dp, 11% |
Center Y |
Specifies by how much a widget's center moves vertically from its original position. |
-21 px, 263 dp, 11% |
Width |
Specifies the width of a widget. |
100 px |
Height |
Specifies the height of a widget. |
250 dp |
Min Width |
Specifies the minimum width of a widget. |
20% |
Min Height |
Specifies the minimum height of a widget. |
15% |
Max Width |
Specifies the maximum width of a widget. |
540px |
Max Height | Specifies the maximum width of a widget. | 300px |
Rotate |
Specifies the angle at which a widget is rotated. |
45 |
Anchor X |
Specifies the horizontal anchor point from where widget rotation begins. |
15% |
Anchor Y |
Specifies the vertical anchor point from where widget rotation begins. |
15% |
Time |
Specifies the number of milliseconds (ms) in which an animation is completed. |
1000 |
Time Function |
The following time functions are available:
|
|
Delay | Specifies the number of milliseconds (ms) to wait before starting an animation. | 2000 |
Repeat | Specifies the number of times an action is repeated. To run the action indefinitely, select the Infinite check box. | 5 |
Direction |
Specifies whether the direction of the animation goes in one direction or alternates. When the animation alternates, the animated widget moves toward the end position specified in the positional properties, and then returns to its starting point at the same rate. The following options are available:
|
None, Alternate |
Start |
Specifies how an animation action starts. The following options are available:
Note: With Animation and After Animation properties are ignored if only single action is available in the Action Sequence pane. |
Immediately |
Inherit |
The following options are available:
|
Both |
Note: For the following properties Left, Right, Top, Bottom, Center X and Center Y, Width, Height, Min Width, Min Height, Max Width, and Max Height, you can specify the values in Device Independent Pixels (dp), pixels (px), and percentage (%). You can also specify negative values for these properties.
Using this single action, you can move, scale, and rotate a widget in three dimensions.
To use the Flex Layout animation, do the following:
Property | Description | Examples |
---|---|---|
Animation ID | The name or ID of the animation. You can use the default ID, or you can enter your own ID, ensuring that it has no spaces, and does not duplicate the name of an existing animation. | TransformAnimation |
Left |
Specifies by how much a widget moves to the left from its original position. |
-20 px, 100 dp, 15% |
Top |
Specifies by how much a widget moves to the top from its original position. |
-15 px, 200 dp, 7% |
Width |
Specifies the width of a widget. |
100 px |
Height |
Specifies the height of a widget. |
250 dp |
Rotate |
Specifies the angle at which a widget is rotated. This can range between 180 and -180. |
45 |
Anchor X |
Specifies the horizontal anchor point from where widget rotation begins. |
15% |
Anchor Y |
Specifies the vertical anchor point from where widget rotation begins. |
15% |
Time |
Specifies the number of milliseconds (ms) in which an animation is completed. |
1000 |
Delay | Specifies the number of milliseconds (ms) to wait before starting an animation. | 2000 |
Repeat | Specifies the number of times an action is repeated. To run the action indefinitely, select the Infinite check box. | 5 |
Direction |
Specifies whether the direction of the animation goes in one direction or alternates. When the animation alternates, the animated widget moves toward the end position specified in the positional properties, and then returns to its starting point at the same rate. The following options are available:
|
None, Alternate |
|
Defines the appearance of the animated widget after the animation has executed, outside of the time the animation takes place. The following options are available:
|
-21 px, 263 dp, 11% |
Note: For the following properties Left, Top, Width, and Height, you can specify the values in Device Independent Pixels (dp), pixels (px), and percentage (%). You can also specify negative values for these properties.
To rotate a widget, do the following:
Property | Description | Examples |
---|---|---|
Animation ID | The name or ID of the animation. You can use the default ID, or you can enter your own ID, ensuring that it has no spaces, and does not duplicate the name of an existing animation. | Rotate_angle |
Rotate |
Specifies the angle at which a widget is to be rotated. |
45 |
Anchor X |
Specifies the horizontal anchor point from where widget rotation begins. |
15% |
Anchor Y |
Specifies the vertical anchor point from where widget rotation begins. |
15% |
Time |
Specifies the number of milliseconds (ms) in which an animation is completed. |
1000 |
Time Function |
The following time functions are available:
|
|
Delay | Specifies the number of milliseconds (ms) to wait before starting an animation. | 2000 |
Repeat | Specifies the number of times an action is repeated. To run the action indefinitely, select the Infinite check box. | 5 |
Direction |
Specifies whether the direction of the animation goes in one direction or alternates. When the animation alternates, the animated widget moves toward the end position specified in the positional properties, and then returns to its starting point at the same rate. The following options are available:
|
None, Alternate |
Start |
Specifies how an animation action starts. The following options are available:
Note: With Animation and After Animation properties are ignored if only single action is available in the Action Sequence pane. |
Immediately |
Inherit |
The following options are available:
|
Both |
To rotate a widget along the X, Y, and Z axes, do the following:
Property | Description | Examples |
---|---|---|
Animation ID | The name or ID of the animation. You can use the default ID, or you can enter your own ID, ensuring that it has no spaces, and does not duplicate the name of an existing animation. | Rotate3D_angle |
Rotate 3D |
Specifies which axes rotate, and the angle of their rotation. For each axis—X, Y, and Z—you specify either 0, which means you don't want that axis to rotate, or 1, which means you do want it to rotate. You also specify the number of degrees by which the widget should rotate upon the chosen axes. |
|
Perspective | Sets the perspective transform and the vanishing point to center of the widget; this can be platform-specific. Perspective creates the illusion of distance between the user and the object. | 1000 |
Anchor X |
Specifies the horizontal anchor point from where widget rotation begins. |
15% |
Anchor Y |
Specifies the vertical anchor point from where widget rotation begins. |
15% |
Time |
Specifies the number of milliseconds (ms) in which an animation is completed. |
1000 |
Time Function |
The following time functions are available:
|
|
Delay | Specifies the number of milliseconds (ms) to wait before starting an animation. | 2000 |
Repeat | Specifies the number of times an action is repeated. To run the action indefinitely, select the Infinite check box. | 5 |
Direction |
Specifies whether the direction of the animation goes in one direction or alternates. When the animation alternates, the animated widget moves toward the end position specified in the positional properties, and then returns to its starting point at the same rate. The following options are available:
|
None, Alternate |
Inherit |
The following options are available:
|
Both |
The Set Style animation changes the background color of a widget.
To change the background color of a widget, do the following:
Property | Description | Examples |
---|---|---|
Animation ID | The name or ID of the animation. You can use the default ID, or you can enter your own ID, ensuring that it has no spaces, and does not duplicate the name of an existing animation. | SetStyle_Color |
Background Color |
Select a color from the color picker. Only Single color . |
|
Opacity |
Specifies the opacity of the background color. |
15% |
Time |
Specifies the number of milliseconds (ms) in which an animation is completed. |
1000 |
Time Function |
The following time functions are available:
|
|
Delay | Specifies the number of milliseconds (ms) to wait before starting an animation. | 2000 |
Repeat | Specifies the number of times an action is repeated. To run the action indefinitely, select the Infinite check box. | 5 |
Direction |
Specifies whether the direction of the animation goes in one direction or alternates. When the animation alternates, the animated widget moves toward the end position specified in the positional properties, and then returns to its starting point at the same rate. The following options are available:
|
None, Alternate |
Start |
Specifies how an animation action starts. The following options are available:
Note: With Animation and After Animation properties are ignored if only single action is available in the Action Sequence pane. |
Immediately |
Inherit |
The following options are available:
|
Both |
Rev | Author | Edits |
7.0 | SB | NMK |
Copyright © 2013 Kony, Inc. All rights reserved. |