Add css transition for pages.