Added next animation to callback function