add astro native SPA transition

This commit is contained in:
2025-07-15 21:56:33 -05:00
parent 22d5b50f73
commit e07210638e
11 changed files with 40 additions and 15 deletions

View File

@@ -29,7 +29,7 @@
<script>
// Theme transition script
document.addEventListener('DOMContentLoaded', () => {
document.addEventListener('astro:page-load', () => {
const themeToggle = document.querySelector('[data-theme-toggle]');
const overlay = document.getElementById('theme-transition-overlay');