add script to animate page transition