Archived
Template
1
Fork 0

Add ViewTransition

This commit is contained in:
Korbs 2024-01-31 06:57:52 -05:00
parent d237061288
commit 9481eed603
No known key found for this signature in database

View file

@ -2,7 +2,6 @@
// Properties // Properties
const { Title, Description, Selected } = Astro.props const { Title, Description, Selected } = Astro.props
// Components // Components
import Head from '@components/global/Head.astro' import Head from '@components/global/Head.astro'
import Header from '@components/global/Header.astro' import Header from '@components/global/Header.astro'
@ -14,9 +13,11 @@ import '@styles/Header.scss'
// Other Stuff // Other Stuff
import i18next, { t } from "i18next" import i18next, { t } from "i18next"
import { fade, ViewTransitions } from 'astro:transitions'
--- ---
<html lang={i18next.language}> <html lang={i18next.language}>
<ViewTransitions/>
<Head Title={Title} Description={Description}/> <Head Title={Title} Description={Description}/>
<Header Selected={Selected}/> <Header Selected={Selected}/>
<body> <body>