This commit is contained in:
2026-04-25 18:28:06 +09:00
parent dd2c1fcc70
commit 6bc97e0057
+6 -5
View File
@@ -1,14 +1,15 @@
/* Progressive Blur */
(function initProgressiveHeaderBlur() {
function initProgressiveHeaderBlur() {
const header = document.querySelector('header');
if (!header) return;
if (!header || header.querySelector('.header-blur')) return;
const container = document.createElement('div');
container.className = 'header-blur';
container.setAttribute('aria-hidden', 'true');
for (let i = 0; i < 5; i++) container.appendChild(document.createElement('div'));
header.prepend(container);
})();
}
initProgressiveHeaderBlur();
/* View Transition */
(() => {
@@ -118,7 +119,6 @@
if (typeof window.__cursorCleanup === 'function') {
window.__cursorCleanup();
window.__cursorCleanup = null;
}
await preloadAssets(doc);
@@ -139,7 +139,8 @@
});
}
history.pushState(null, '', url.href);
initProgressiveHeaderBlur();
history.pushState(null, '', response.url);
if (typeof window.__cursorReinit === 'function') {
window.__cursorReinit();