# Motion Path Animation
The attributes described in this topic are used to set the motion path of the component in a translation animation.
## Attributes
Name
Type
Default Value
Description
motionPath
{
path: string,
from?: number,
to?: number,
rotatable?: boolean
}
NOTE:
In a path, start and end can be used to replace the start point and end point. Example:
'Mstart.x start.y L50 50 Lend.x end.y Z'
{
"",
0.0,
1.0,
false
}
Motion path of the component. The input parameters are described as follows:
path: motion path of the translation animation. The svg path string is used.
from: start point of the motion path. The default value is 0.0.
to: end point of the motion path. The default value is 1.0.