Method for checking if animation in progress.