shift animation to its own file