Generate animation position by function

Create animation position generator.
With current implementation, it takes too many lines and it is difficult to create new animation.
By using this generator, we just need to set start and end positions and length of frames.
It will reduce maintenance cost.