--
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user