astro开启过度动画
参考官方文档:https://docs.astro.build/zh-cn/guides/view-transitions/ 只需修改Base.astro即可
+import { ClientRouter } from 'astro:transitions';<html lang="en"> <head> <title>我的主页</title>+ <ClientRouter /> </head> <body> <h1>欢迎来到我的网站!</h1> </body></html>