▾ modified blog/layouts/_default/baseof.html +0 -16 Viewed
@@ -114,22 +114,6 @@ 114 114 request: {headers: {}, signal: restoreAbort.signal}, 115 115 }); 116 116 }); 117 - 118 - // innerMorph patches the masthead signal's < path > in place across a 119 - // boosted navigation rather than replacing it, so its `d` attribute 120 - // just morphs (see .masthead__signal path's `transition: d` in 121 - // style.scss) and the signal-sweep draw-in animation - which, being 122 - // a CSS animation on an element that never left the DOM, has no 123 - // "start" to trigger - never replays. Restart it by hand on every 124 - // swap so the line draws itself in on every navigation, not only a 125 - // full page load. 126 - document.body.addEventListener("htmx:after:swap", () => { 127 - const path = document.querySelector(".masthead__signal path"); 128 - if (!path) return; 129 - path.style.animation = "none"; 130 - path.getBoundingClientRect(); 131 - path.style.animation = ""; 132 - }); 133 117 }); 134 118 < / script > 135 119 {{ block "head" . }}{{ end }}
@@ -114,22 +114,6 @@ 114 request: {headers: {}, signal: restoreAbort.signal}, 114 request: {headers: {}, signal: restoreAbort.signal}, 115 }); 115 }); 116 }); 116 }); 117 - 118 - // innerMorph patches the masthead signal's < path > in place across a 119 - // boosted navigation rather than replacing it, so its `d` attribute 120 - // just morphs (see .masthead__signal path's `transition: d` in 121 - // style.scss) and the signal-sweep draw-in animation - which, being 122 - // a CSS animation on an element that never left the DOM, has no 123 - // "start" to trigger - never replays. Restart it by hand on every 124 - // swap so the line draws itself in on every navigation, not only a 125 - // full page load. 126 - document.body.addEventListener("htmx:after:swap", () => { 127 - const path = document.querySelector(".masthead__signal path"); 128 - if (!path) return; 129 - path.style.animation = "none"; 130 - path.getBoundingClientRect(); 131 - path.style.animation = ""; 132 - }); 133 }); 117 }); 134 < / script > 118 < / script > 135 {{ block "head" . }}{{ end }} 119 {{ block "head" . }}{{ end }}