mobile optimizations

This commit is contained in:
2026-04-06 14:37:07 -07:00
parent 16f271c1c9
commit 3f103c3e15
6 changed files with 18 additions and 8 deletions

View File

@@ -74,8 +74,7 @@ const ogImage = "https://timmypidashev.dev/og-image.jpg";
});
document.addEventListener('astro:after-swap', function() {
var m = getMask();
// Wait longer for canvas + overlays to hydrate on index page
setTimeout(function() { m.classList.remove('active'); }, 150);
setTimeout(function() { m.classList.remove('active'); }, 50);
});
// Mark SPA navigations so AnimateIn can detect them
document.addEventListener('astro:after-swap', function() {