Use CSS classes to do page transitions