diff --git a/header.php b/header.php index 3938d8b4..1c35a7d3 100644 --- a/header.php +++ b/header.php @@ -9,15 +9,10 @@ (function(){ const html = document.documentElement; html.className = html.className.replace(/no-js/, 'js'); - - if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) { - html.className = html.className.replace(/no-js-animation/, 'js-animation'); - } - + + if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches && !window.location.hash.includes('no-js-animation')) { + html.className = html.className.replace(/no-js-animation/, 'js-animation'); + } })(); //]]>