This is a basic command. You can use it to implement dynamic effects by moving a single image or a frame animation consisting of multiple images.
<Image x="" y="" centerX="" centerY="" src="">
<PositionAnimation delay="" repeat="">
<Position x="" y="" time=""/>
</PositionAnimation>
</Image> Parameter | Type | Mandatory | Description |
|---|---|---|---|
delay | Number | No | Delay for executing a command, in milliseconds. The animation is played after the specified delay. |
repeat | Number | No | Number of times that an animation is played. If the value is 0, the animation is played for infinite times. |
x | Number | Yes | X coordinate relative to the initial position of an image. The value is an integer. |
y time | Number Number | Yes Yes | Y coordinate relative to the initial position of an image. The value is an integer. Number of milliseconds from the start frame, which cannot be less than 0. |
Create a position animation by moving an image from (0,0) to (–300,0), then to (–300,300), and to (0,300), and finally to (0,0) at an interval of 1000 milliseconds.
<Image x="610" y="390" centerX="136" centerY="151" src="ty.png">
<PositionAnimation>
<Position x="0" y="0" time="0"/>
<Position x="-300" y="0" time="1000"/>
<Position x="-300" y="300" time="2000"/>
<Position x="0" y="300" time="3000"/>
<Position x="0" y="0" time="4000"/>
</PositionAnimation>
</Image>