refactored animation into its own file

Signed-off-by: cameronbourke <cameron2295@gmail.com>