In this example, the pink box starts moving along a path from bottom left to top right. But the path itself is animated and changes to a path from top left to bottom right. As the path changes gradually like this within 3 seconds, the pink box moves along, so even though the path is allways straight, the motion becomes a curve.
The dashed line moving behind the pink box is not the actual path the pink box moves along, it is just there to show where that path is.