animate
Last updated
An animation lets a component gradually change from one style to another.
Currently, this function only animates an image downward and slowly fades away.
Note: Only applicable for image component.
Web
Mobile
component
The name of the component to animate.
Text
-
-
Partial (Yes if no 'componentId'.)
componentId
The id of the component to animate.
Text
-
-
Partial (Yes if no 'component'.)
type
Not applicable for now.
Text
-
-
No
startPositionY
Starting y-axis position of the animation.
Number
0
-
No
endPositionY
Ending y-axis position of the animation.
Number
0
-
No
rotationDegree
Rotation degree of the animation.
Number
0
-
No
Note: The component will be updated to show the changes.
In this example, the image would move downward and slowly fade away upon clicking on it.
Drag a new image component to the page, under it's properties, update the name to imgAnimate.
Click the action tab. Select the click event of the image component.
In the event flow, drag the animate function.
Update the parameters in the inspector of the animate function.

Last updated
component: imgAnimate
startPositionY: 0
endPositionY: 20
rotationDegree: 45