After countless hours of troubleshooting, I still can't figure out why the code snippet below is not working properly on my website at :
<script>
$(window).scroll(function () {
if ($(window).scrollTop() > 400) {
$('.home #masthead').css("opacity", 0.98);
}
else{
$('.home #masthead').css("opacity", 0);
}
});
</script>
I have placed this script in the footer section with 'script' tags and ensured that all necessary files are included. Your assistance and review of the page source would be greatly appreciated.