move animation to separate file