First animate, then call loadPage. This makes the animation trigger immediately.