User:Archangel1712/timeless.js

window.onscroll = function {scrollFunction};

function scrollFunction { if (document.body.scrollTop > 80 || document.documentElement.scrollTop > 80) { document.getElementById("mw-header-container").style.boxShadow = "0px 4px 16px 0px rgba(0, 8, 40, 0.24)"; } else { document.getElementById("mw-header-container").style.boxShadow = "0px 1px 0px 0px rgba(0, 8, 40, 0.08)"; } }