mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 11:03:50 +00:00
mobile optimizations
This commit is contained in:
@@ -74,8 +74,8 @@ const ogImage = "https://timmypidashev.dev/og-image.jpg";
|
||||
});
|
||||
document.addEventListener('astro:after-swap', function() {
|
||||
var m = getMask();
|
||||
// Wait for React to hydrate before revealing
|
||||
setTimeout(function() { m.classList.remove('active'); }, 50);
|
||||
// Wait longer for canvas + overlays to hydrate on index page
|
||||
setTimeout(function() { m.classList.remove('active'); }, 150);
|
||||
});
|
||||
// Mark SPA navigations so AnimateIn can detect them
|
||||
document.addEventListener('astro:after-swap', function() {
|
||||
|
||||
Reference in New Issue
Block a user