Revert (remove) astro View Transitions until stable

This commit is contained in:
prototypa
2023-08-07 07:47:08 -04:00
parent 5ee7bd2a4f
commit 76e55f7115
3 changed files with 1 additions and 8 deletions

View File

@ -69,10 +69,6 @@ export default defineConfig({
remarkPlugins: [readingTimeRemarkPlugin], remarkPlugins: [readingTimeRemarkPlugin],
}, },
experimental: {
viewTransitions: true,
},
vite: { vite: {
resolve: { resolve: {
alias: { alias: {

View File

@ -1,6 +1,4 @@
--- ---
import { ViewTransitions } from 'astro:transitions';
import '~/assets/styles/tailwind.css'; import '~/assets/styles/tailwind.css';
import { I18N_CONFIG } from "~/utils/config"; import { I18N_CONFIG } from "~/utils/config";
@ -35,7 +33,6 @@ const { language, textDirection } = I18N_CONFIG;
<Metadata {...metadata} /> <Metadata {...metadata} />
<SiteVerification /> <SiteVerification />
<Analytics /> <Analytics />
<ViewTransitions />
</head> </head>
<body class="antialiased text-default bg-page tracking-tight"> <body class="antialiased text-default bg-page tracking-tight">

View File

@ -22,7 +22,7 @@ const { metadata } = Astro.props;
<slot name="header"> <slot name="header">
<Header {...headerData} isSticky showRssFeed showToggleTheme /> <Header {...headerData} isSticky showRssFeed showToggleTheme />
</slot> </slot>
<main transition:animate="morph"> <main>
<slot /> <slot />
</main> </main>
<slot name="footer"> <slot name="footer">