From bc2b1023dc2a6c0041bd26ae7414f293f9d9c861 Mon Sep 17 00:00:00 2001 From: Bacati Date: Wed, 2 Oct 2024 14:11:47 +0200 Subject: [PATCH] animation au changement de page Signed-off-by: Bacati --- src/layouts/Base.astro | 2 ++ src/layouts/MainLayout.astro | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index bbdf933..6ae2f70 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -1,6 +1,7 @@ --- import Head, { type Props as HeadProps } from './Head.astro' import 'assets/pages/404/styles/style.scss' +import { ViewTransitions } from 'astro:transitions'; export interface Props extends HeadProps { class?: string @@ -12,6 +13,7 @@ export interface Props extends HeadProps { + diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro index 3676cc2..0d996b5 100644 --- a/src/layouts/MainLayout.astro +++ b/src/layouts/MainLayout.astro @@ -2,6 +2,7 @@ import Footer from 'components/layouts/Footer.astro' import Base, { type Props as BaseProps } from './Base.astro' import Header from 'components/layouts/Header.astro' +import { fade } from 'astro:transitions' export interface Props extends BaseProps { /** @@ -14,6 +15,7 @@ export interface Props extends BaseProps {
+