move loader end to after animation has finished