Template implementing animated page transitions