changing animation to be time based so it's consistent across machines