kony.ui.createAnimation Function
The details of the kony.ui.createAnimation function, which is part of the kony.ui Namespace, are as follows.
Creates an object that defines an animation.
Syntax
kony.ui.createAnimation(animationDefinition);
Input Parameters
| Parameter | Description |
|---|---|
| animationDefinition | An object that defines the transformations to perform during the animation. |
Example
var transformObject = kony.ui.makeAffineTransform();
transformObject.translate(10, 0);
transformObject.scale(0.1, 1);
animationDef = {
100: {
"transform": transformObject
}
};
animationConfig = {
duration: 0.3,
fillMode: kony.anim.FILL_MODE_FORWARDS
};
animationDefObject = kony.ui.createAnimation(animationDef); Return Values
Returns an instantiated animation object.