wait for the page to finish the animation