Port of the animation code

Version: 1.prealpha.01.09

Signed-off-by: GreatEmerald <pastas4@gmail.com>