diff --git a/templates/partials/navigation/language-selector.html b/templates/partials/navigation/language-selector.html index 81fbd63..9011c32 100644 --- a/templates/partials/navigation/language-selector.html +++ b/templates/partials/navigation/language-selector.html @@ -26,7 +26,13 @@ hx-swap="outerHTML swap:250ms settle:250ms" hx-indicator="#lang-indicator-en" hx-push-url="/?lang=en" - aria-label="English"> + aria-label="English" + _="on htmx:beforeRequest + add .htmx-swapping to #cv-inner-content-page-1 + add .htmx-swapping to #cv-inner-content-page-2 + on htmx:afterSwap + remove .htmx-swapping from #cv-inner-content-page-1 + remove .htmx-swapping from #cv-inner-content-page-2"> English