Skip to content

Commit

Permalink
feat: adding view transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
rxyhn committed Sep 11, 2024
1 parent 7150135 commit 5d26e0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/BaseHead.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
import { ViewTransitions } from "astro:transitions";
interface Props {
title: string;
description: string;
Expand Down Expand Up @@ -45,7 +47,8 @@ const { title, description } = Astro.props;
<script is:inline src="/js/theme.js"></script>
<script is:inline src="/js/scroll.js"></script>

<!-- <ViewTransitions /> -->
<ViewTransitions />

<script>
import type { TransitionBeforeSwapEvent } from "astro:transitions/client";
document.addEventListener("astro:before-swap", (e) =>
Expand Down

0 comments on commit 5d26e0f

Please sign in to comment.